|
|||||||||
| 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. |
|
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. |
|
protected Item |
getOwner()
Gets the owner of the attachment. |
|
int |
getSize()
Gets the size of the attachment. |
|
protected void |
internalLoad(BodyType bodyType,
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(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. |
|
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, getNamespace, internalValidate, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, 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 ComplexPropertyT - 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 location
public int getSize()
throws ServiceVersionException
ServiceVersionException - throws ServiceVersionException
public Date getLastModifiedTime()
throws ServiceVersionException
ServiceVersionException - the service version exception
public boolean getIsInline()
throws ServiceVersionException
ServiceVersionException - the service version exception
public 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 Exception
tryReadElementFromXml in class ComplexPropertyreader - The reader.
Exception - the exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - the writer
Exception - the exception
protected void internalLoad(BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
throws Exception
bodyType - Type of the body.additionalProperties - The additional properties.
Exception - the exception
public void load()
throws Exception
Exception - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||