|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.Attachment
microsoft.exchange.webservices.data.ItemAttachment
public class ItemAttachment
Represents an item attachment.
Constructor Summary | |
---|---|
protected |
ItemAttachment(Item owner)
Initializes a new instance of the class. |
Method Summary | |
---|---|
Item |
getItem()
Gets the item associated with the attachment. |
protected java.lang.String |
getXmlElementName()
Obtains EWS XML element name for this object. |
void |
load(BodyType bodyType,
java.lang.Iterable<PropertyDefinitionBase> additionalProperties)
Loads this attachment. |
void |
load(BodyType bodyType,
PropertyDefinitionBase... additionalProperties)
Loads this attachment. |
void |
load(java.lang.Iterable<PropertyDefinitionBase> additionalProperties)
Loads this attachment. |
void |
load(PropertyDefinitionBase... additionalProperties)
Loads this attachment. |
void |
serviceObjectChanged(ServiceObject serviceObject)
Service object changed. |
protected void |
setItem(Item item)
Sets the item associated with the attachment. |
protected boolean |
tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
Tries to read the element at the current position of the reader. |
protected boolean |
tryReadElementFromXmlToPatch(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
For ItemAttachment, AttachmentId and Item should be patched. |
protected void |
validate(int attachmentIndex)
Validates this instance. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
Writes the properties of this object as XML elements. |
Methods inherited from class microsoft.exchange.webservices.data.Attachment |
---|
canSetFieldValue, getContentId, getContentLocation, getContentType, getId, getIsInline, getLastModifiedTime, getName, getOwner, getSize, internalLoad, isNew, load, setContentId, setContentLocation, setContentType, setIsInline, setName, throwIfThisIsNotNew |
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
---|
addOnChangeEvent, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ItemAttachment(Item owner)
owner
- The owner of the attachmentMethod Detail |
---|
public Item getItem()
protected void setItem(Item item)
item
- the new itemprotected java.lang.String getXmlElementName()
protected boolean tryReadElementFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
tryReadElementFromXml
in class Attachment
reader
- the reader
java.lang.Exception
- the exceptionprotected boolean tryReadElementFromXmlToPatch(microsoft.exchange.webservices.data.EwsServiceXmlReader reader) throws java.lang.Exception
tryReadElementFromXmlToPatch
in class ComplexProperty
reader
- The reader.
True if element was read.
java.lang.Exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer) throws java.lang.Exception
writeElementsToXml
in class Attachment
writer
- ,The writer to write the elements to.
java.lang.Exception
- the exceptionprotected void validate(int attachmentIndex) throws java.lang.Exception
attachmentIndex
- the attachment index
java.lang.Exception
- the exceptionpublic void load(PropertyDefinitionBase... additionalProperties) throws java.lang.Exception
additionalProperties
- the additional properties
java.lang.Exception
- the exceptionpublic void load(java.lang.Iterable<PropertyDefinitionBase> additionalProperties) throws java.lang.Exception
additionalProperties
- the additional properties
java.lang.Exception
- the exceptionpublic void load(BodyType bodyType, PropertyDefinitionBase... additionalProperties) throws java.lang.Exception
bodyType
- the body typeadditionalProperties
- the additional properties
java.lang.Exception
- the exceptionpublic void load(BodyType bodyType, java.lang.Iterable<PropertyDefinitionBase> additionalProperties) throws java.lang.Exception
bodyType
- the body typeadditionalProperties
- the additional properties
java.lang.Exception
- the exceptionpublic void serviceObjectChanged(ServiceObject serviceObject)
serviceObject
- accepts ServiceObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |