|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.property.complex.ComplexProperty
microsoft.exchange.webservices.data.property.complex.Attachment
microsoft.exchange.webservices.data.property.complex.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. |
String |
getXmlElementName()
Obtains EWS XML element name for this object. |
void |
load(BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
Loads this attachment. |
void |
load(BodyType bodyType,
PropertyDefinitionBase... additionalProperties)
Loads this attachment. |
void |
load(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. |
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read the element at the current position of the reader. |
boolean |
tryReadElementFromXmlToPatch(EwsServiceXmlReader reader)
For ItemAttachment, AttachmentId and Item should be patched. |
protected void |
validate(int attachmentIndex)
Validates this instance. |
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes the property of this object as XML elements. |
| Methods inherited from class microsoft.exchange.webservices.data.property.complex.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.property.complex.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 attachment| Method Detail |
|---|
public Item getItem()
protected void setItem(Item item)
item - the new itempublic String getXmlElementName()
getXmlElementName in class Attachment
public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXml in class Attachmentreader - the reader
Exception - the exception
public boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader)
throws Exception
tryReadElementFromXmlToPatch in class ComplexPropertyreader - The reader.
True if element was read.
Exception
public void writeElementsToXml(EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class Attachmentwriter - ,The writer to write the elements to.
Exception - the exception
protected void validate(int attachmentIndex)
throws Exception
attachmentIndex - Index of this attachment.
ServiceValidationException - the service validation exception
Exception - the exception
public void load(PropertyDefinitionBase... additionalProperties)
throws Exception
additionalProperties - the additional property
Exception - the exception
public void load(Iterable<PropertyDefinitionBase> additionalProperties)
throws Exception
additionalProperties - the additional property
Exception - the exception
public void load(BodyType bodyType,
PropertyDefinitionBase... additionalProperties)
throws Exception
bodyType - the body typeadditionalProperties - the additional property
Exception - the exception
public void load(BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
throws Exception
bodyType - the body typeadditionalProperties - the additional property
Exception - the exceptionpublic void serviceObjectChanged(ServiceObject serviceObject)
serviceObjectChanged in interface IServiceObjectChangedDelegateserviceObject - accepts ServiceObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||