|
||||||||
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(java.lang.String xmlElementName)
Creates the complex property. |
protected java.util.List<TComplexProperty> |
getAddedItems()
Gets the added items. |
protected abstract java.lang.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 java.util.List<TComplexProperty> |
getItems()
Gets the items. |
protected java.util.List<TComplexProperty> |
getModifiedItems()
Gets the modified items. |
TComplexProperty |
getPropertyAtIndex(int index)
* Gets the property at the specified index. |
protected java.util.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. |
java.util.Iterator<TComplexProperty> |
iterator()
Gets an enumerator that iterates through the elements of the collection. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
java.lang.String localElementName)
Loads from XML. |
protected void |
loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
java.lang.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. |
protected void |
updateFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader,
microsoft.exchange.webservices.data.XmlNamespace xmlNamespace,
java.lang.String xmlElementName)
Loads from XML to update itself. |
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,
java.lang.String xmlElementName)
Writes to XML. |
Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, func, getNamespace, internalValidate, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, tryReadElementFromXmlToPatch, updateFromXml, 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(java.lang.String xmlElementName)
xmlElementName
- Name of the XML element.
protected abstract java.lang.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, java.lang.String localElementName) throws java.lang.Exception
loadFromXml
in class ComplexProperty
reader
- The reader.localElementName
- Name of the local element.
java.lang.Exception
- the exceptionprotected void loadFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, microsoft.exchange.webservices.data.XmlNamespace xmlNamespace, java.lang.String localElementName) throws java.lang.Exception
loadFromXml
in class ComplexProperty
reader
- The reader.xmlNamespace
- The XML namespace.localElementName
- Name of the local element.
java.lang.Exception
- the exceptionprotected void updateFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader, microsoft.exchange.webservices.data.XmlNamespace xmlNamespace, java.lang.String xmlElementName) throws java.lang.Exception
updateFromXml
in class ComplexProperty
reader
- The reader.xmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.
java.lang.Exception
protected void writeToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, microsoft.exchange.webservices.data.XmlNamespace xmlNamespace, java.lang.String xmlElementName) throws java.lang.Exception
writeToXml
in class ComplexProperty
writer
- The writer.xmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.
java.lang.Exception
- the exceptionprotected boolean shouldWriteToXml()
protected 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 clearChangeLog()
clearChangeLog
in class ComplexProperty
protected void removeFromChangeLog(TComplexProperty complexProperty)
complexProperty
- The complex property.protected java.util.List<TComplexProperty> getItems()
protected java.util.List<TComplexProperty> getAddedItems()
protected java.util.List<TComplexProperty> getModifiedItems()
protected java.util.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 java.lang.IllegalArgumentException
index
- the index
java.lang.IllegalArgumentException
- thrown if if index is out of range.public java.util.Iterator<TComplexProperty> iterator()
iterator
in interface java.lang.Iterable<TComplexProperty extends ComplexProperty>
public boolean writeSetUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, ServiceObject ewsObject, PropertyDefinition propertyDefinition) throws java.lang.Exception
writer
- accepts EwsServiceXmlWriterewsObject
- accepts ServiceObjectpropertyDefinition
- accepts PropertyDefinition
java.lang.Exception
- the exceptionpublic boolean writeDeleteUpdateToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer, ServiceObject ewsObject) throws java.lang.Exception
writer
- The writer.ewsObject
- The ews object.
java.lang.Exception
- the exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |