|
|||||||||
| 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.ComplexPropertyCollection<TComplexProperty>
TComplexProperty - ComplexProperty type.public abstract class ComplexPropertyCollection<TComplexProperty extends ComplexProperty>
Represents a collection of properties that can be sent to and retrieved from EWS.
| Constructor Summary | |
|---|---|
protected |
ComplexPropertyCollection()
Initializes a new instance of. |
| Method Summary | |
|---|---|
protected void |
clearChangeLog()
Clears the change log. |
void |
complexPropertyChanged(ComplexProperty complexProperty)
Complex property changed. |
boolean |
contains(TComplexProperty complexProperty)
Determines whether a specific property is in the collection. |
protected abstract TComplexProperty |
createComplexProperty(String xmlElementName)
Creates the complex property. |
protected List<TComplexProperty> |
getAddedItems()
Gets the added items. |
protected abstract String |
getCollectionItemXmlElementName(TComplexProperty complexProperty)
Gets the name of the collection item XML element. |
int |
getCount()
* Gets the total number of properties in the collection. |
protected List<TComplexProperty> |
getItems()
Gets the items. |
protected List<TComplexProperty> |
getModifiedItems()
Gets the modified items. |
TComplexProperty |
getPropertyAtIndex(int index)
* Gets the property at the specified index. |
protected List<TComplexProperty> |
getRemovedItems()
Gets the removed items. |
int |
indexOf(TComplexProperty complexProperty)
Searches for a specific property and return its zero-based index within the collection. |
protected void |
internalAdd(TComplexProperty complexProperty)
Add complex property. |
protected void |
internalClear()
Clear collection. |
protected boolean |
internalRemove(TComplexProperty complexProperty)
Remove specified complex property. |
protected void |
internalRemoveAt(int index)
Remote entry at index. |
protected void |
itemChanged(ComplexProperty complexProperty)
Item changed. |
Iterator<TComplexProperty> |
iterator()
Gets an enumerator that iterates through the elements of the collection. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
String localElementName)
Loads from XML. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
String localElementName)
Loads from XML. |
protected void |
removeFromChangeLog(TComplexProperty complexProperty)
Removes from change log. |
protected boolean |
shouldWriteToXml()
Determine whether we should write collection to XML or not. |
boolean |
writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject)
* Writes the deletion update to XML. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes elements to XML. |
boolean |
writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
Write set update to xml. |
protected void |
writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
String xmlElementName)
Writes to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeAttributesToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ComplexPropertyCollection()
| Method Detail |
|---|
protected abstract TComplexProperty createComplexProperty(String xmlElementName)
xmlElementName - Name of the XML element.
protected abstract String getCollectionItemXmlElementName(TComplexProperty complexProperty)
complexProperty - The complex property.
protected void itemChanged(ComplexProperty complexProperty)
complexProperty - The complex property.
protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
String localElementName)
throws Exception
loadFromXml in class ComplexPropertyreader - The reader.localElementName - Name of the local element.
Exception - the exception
protected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
String localElementName)
throws Exception
loadFromXml in class ComplexPropertyreader - The reader.xmlNamespace - The XML namespace.localElementName - Name of the local element.
Exception - the exception
protected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
String xmlElementName)
throws Exception
writeToXml in class ComplexPropertywriter - The writer.xmlNamespace - The XML namespace.xmlElementName - Name of the XML element.
Exception - the exceptionprotected boolean shouldWriteToXml()
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - The writer.
Exception - the exceptionprotected void clearChangeLog()
clearChangeLog in class ComplexPropertyprotected void removeFromChangeLog(TComplexProperty complexProperty)
complexProperty - The complex property.protected List<TComplexProperty> getItems()
protected List<TComplexProperty> getAddedItems()
protected List<TComplexProperty> getModifiedItems()
protected List<TComplexProperty> getRemovedItems()
protected void internalAdd(TComplexProperty complexProperty)
complexProperty - The complex property.public void complexPropertyChanged(ComplexProperty complexProperty)
complexProperty - accepts ComplexPropertyprotected void internalClear()
protected void internalRemoveAt(int index)
index - The index.protected boolean internalRemove(TComplexProperty complexProperty)
complexProperty - The complex property.
public boolean contains(TComplexProperty complexProperty)
complexProperty - The property to locate in the collection.
public int indexOf(TComplexProperty complexProperty)
complexProperty - The property to locate in the collection.
public int getCount()
public TComplexProperty getPropertyAtIndex(int index)
throws IllegalArgumentException
index - the index
IllegalArgumentException - thrown if if index is out of range.public Iterator<TComplexProperty> iterator()
iterator in interface Iterable<TComplexProperty extends ComplexProperty>
public boolean writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
throws Exception
writer - accepts EwsServiceXmlWriterewsObject - accepts ServiceObjectpropertyDefinition - accepts PropertyDefinition
Exception - the exception
public boolean writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer,
ServiceObject ewsObject)
throws Exception
writer - The writer.ewsObject - The ews object.
Exception - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||