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