|
||||||||||
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
public abstract class Attachment
Represents an attachment to an item.
Constructor Summary | |
---|---|
protected |
Attachment(Item owner)
Initializes a new instance. |
Method Summary | ||
---|---|---|
|
canSetFieldValue(T field,
T value)
Sets value of field. |
|
String |
getContentId()
Gets the content Id of the attachment. |
|
String |
getContentLocation()
Gets the content location of the attachment. |
|
String |
getContentType()
Gets the content type of the attachment. |
|
String |
getId()
Gets the Id of the attachment. |
|
boolean |
getIsInline()
Gets a value indicating whether this is an inline attachment. |
|
Date |
getLastModifiedTime()
Gets the date and time when this attachment was last modified. |
|
String |
getName()
Gets the name of the attachment. |
|
Item |
getOwner()
Gets the owner of the attachment. |
|
int |
getSize()
Gets the size of the attachment. |
|
abstract String |
getXmlElementName()
Gets the name of the XML element. |
|
protected void |
internalLoad(BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
Load the attachment. |
|
boolean |
isNew()
True if the attachment has not yet been saved, false otherwise. |
|
void |
load()
Loads the attachment. |
|
void |
setContentId(String value)
Sets the content id. |
|
void |
setContentLocation(String value)
Sets the content location. |
|
void |
setContentType(String value)
Sets the content type. |
|
void |
setIsInline(boolean value)
Sets the checks if is inline. |
|
void |
setName(String value)
Sets the name. |
|
protected void |
throwIfThisIsNotNew()
Throws exception if this is not a new service object. |
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML. |
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML. |
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty |
---|
addOnChangeEvent, changed, clearChangeEvents, clearChangeLog, func, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, 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 Attachment(Item owner)
owner
- The owner.Method Detail |
---|
protected void throwIfThisIsNotNew()
public <T> boolean canSetFieldValue(T field, T value)
canSetFieldValue
in class ComplexProperty
T
- the generic typefield
- The fieldvalue
- The value.
public String getId()
public String getName()
public void setName(String value)
value
- the new namepublic String getContentType()
public void setContentType(String value)
value
- the new content typepublic String getContentId()
public void setContentId(String value)
value
- the new content idpublic String getContentLocation()
public void setContentLocation(String value)
value
- the new content locationpublic int getSize() throws ServiceVersionException
ServiceVersionException
- throws ServiceVersionExceptionpublic Date getLastModifiedTime() throws ServiceVersionException
ServiceVersionException
- the service version exceptionpublic boolean getIsInline() throws ServiceVersionException
ServiceVersionException
- the service version exceptionpublic void setIsInline(boolean value) throws ServiceVersionException
value
- the new checks if is inline
ServiceVersionException
- the service version exceptionpublic boolean isNew()
public Item getOwner()
public abstract String getXmlElementName()
public boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
tryReadElementFromXml
in class ComplexProperty
reader
- The reader.
Exception
- the exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ComplexProperty
writer
- the writer
Exception
- the exceptionprotected void internalLoad(BodyType bodyType, Iterable<PropertyDefinitionBase> additionalProperties) throws Exception
bodyType
- Type of the body.additionalProperties
- The additional property.
Exception
- the exceptionpublic void load() throws Exception
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |