public class ItemAttachment extends Attachment
| Constructor and Description |
|---|
ItemAttachment()
Initializes a new instance of the ItemAttachment class.
|
ItemAttachment(Item item)
Initializes a new instance of the ItemAttachment class.
|
ItemAttachment(java.lang.String name)
Initializes a new instance of the ItemAttachment class.
|
ItemAttachment(java.lang.String name,
Item item)
Initializes a new instance of the ItemAttachment class.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
getItem()
Gets the item that is associated with the attachment.
|
void |
setItem(Item item)
Sets the item that is associated with the attachment.
|
java.lang.String |
toString()
Converts the value of the current ItemAttachment object to its equivalent string representation.
|
getAttachmentId, getContentId, getContentLocation, getContentType, getLastModifiedTime, getName, getSize, isInline, setAttachmentId, setContentId, setContentLocation, setContentType, setInline, setLastModifiedTime, setName, setSizepublic ItemAttachment()
public ItemAttachment(java.lang.String name)
name - the namepublic ItemAttachment(Item item)
item - the itempublic ItemAttachment(java.lang.String name,
Item item)
name - the nameitem - the itempublic java.lang.String toString()
toString in class java.lang.Objectpublic Item getItem()
public void setItem(Item item)
item - the new item