|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttachmentCollection
Stores the collection of attachments that is associated with a work item.
Method Summary | |
---|---|
boolean |
add(Attachment attachment)
Adds the specified attachment to this collection. |
Attachment |
getAttachmentByFileID(int fileId)
Gets the attachment by file ID. |
java.util.Iterator<Attachment> |
iterator()
|
void |
remove(Attachment attachment)
Removes the specified attachment from this collection. |
int |
size()
|
Method Detail |
---|
java.util.Iterator<Attachment> iterator()
iterator
in interface java.lang.Iterable<Attachment>
int size()
Attachment
s in the collection.boolean add(Attachment attachment)
attachment
- the attachment to add (must not be null
)
true
if the attachment was not already in this
collection and was added, false
if this collection
already contained the attachment.void remove(Attachment attachment)
attachment
- the attachment to remove (must not be null
)Attachment getAttachmentByFileID(int fileId)
fileId
- the file ID to find in this collection
Attachment
with the specified ID or null
if no matching attachment was found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |