|
||||||||||
| 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.ComplexPropertyCollection<TComplexProperty>
TComplexProperty - ComplexProperty type.public abstract class ComplexPropertyCollection<TComplexProperty extends ComplexProperty>
Represents a collection of property that can be sent to and retrieved from EWS.
| Constructor Summary | |
|---|---|
protected |
ComplexPropertyCollection()
Initializes a new instance of. |
| Method Summary | |
|---|---|
void |
clearChangeLog()
Clears the change log. |
void |
complexPropertyChanged(TComplexProperty 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 item. |
protected abstract String |
getCollectionItemXmlElementName(TComplexProperty complexProperty)
Gets the name of the collection item XML element. |
int |
getCount()
Gets the total number of property in the collection. |
List<TComplexProperty> |
getItems()
Gets the item. |
protected List<TComplexProperty> |
getModifiedItems()
Gets the modified item. |
TComplexProperty |
getPropertyAtIndex(int index)
Gets the property at the specified index. |
protected List<TComplexProperty> |
getRemovedItems()
Gets the removed item. |
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(TComplexProperty property)
Item changed. |
Iterator<TComplexProperty> |
iterator()
Gets an enumerator that iterates through the elements of the collection. |
void |
loadFromXml(EwsServiceXmlReader reader,
String localElementName)
Loads from XML. |
void |
loadFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String localElementName)
Loads from XML. |
protected void |
removeFromChangeLog(TComplexProperty complexProperty)
Removes from change log. |
boolean |
shouldWriteToXml()
Determine whether we should write collection to XML or not. |
void |
updateFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
Loads from XML to update itself. |
boolean |
writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
Writes the deletion update to XML. |
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML. |
boolean |
writeSetUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
Write set update to xml. |
void |
writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
Writes to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.property.complex.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(String xmlElementName)
xmlElementName - Name of the XML element.
protected abstract String getCollectionItemXmlElementName(TComplexProperty complexProperty)
complexProperty - The complex property.
protected void itemChanged(TComplexProperty property)
property - The complex property.
public void loadFromXml(EwsServiceXmlReader reader,
String localElementName)
throws Exception
loadFromXml in class ComplexPropertyreader - The reader.localElementName - Name of the local element.
Exception - the exception
public void loadFromXml(EwsServiceXmlReader reader,
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
public void updateFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
throws Exception
updateFromXml in class ComplexPropertyreader - The reader.xmlNamespace - The XML namespace.xmlElementName - Name of the XML element.
Exception
public void writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
throws Exception
writeToXml in class ComplexPropertywriter - The writer.xmlNamespace - The XML namespace.xmlElementName - Name of the XML element.
Exception - the exceptionpublic boolean shouldWriteToXml()
public void writeElementsToXml(EwsServiceXmlWriter writer)
throws Exception
writeElementsToXml in class ComplexPropertywriter - The writer.
Exception - the exceptionpublic void clearChangeLog()
clearChangeLog in class ComplexPropertyprotected void removeFromChangeLog(TComplexProperty complexProperty)
complexProperty - The complex property.public 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(TComplexProperty complexProperty)
complexPropertyChanged in interface IComplexPropertyChangedDelegate<TComplexProperty extends 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(EwsServiceXmlWriter writer,
ServiceObject ewsObject,
PropertyDefinition propertyDefinition)
throws Exception
writeSetUpdateToXml in interface ICustomXmlUpdateSerializerwriter - accepts EwsServiceXmlWriterewsObject - accepts ServiceObjectpropertyDefinition - accepts PropertyDefinition
Exception - the exception
public boolean writeDeleteUpdateToXml(EwsServiceXmlWriter writer,
ServiceObject ewsObject)
throws Exception
writeDeleteUpdateToXml in interface ICustomXmlUpdateSerializerwriter - 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 | |||||||||