public abstract class ComplexProperty extends Object implements ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>
Modifier | Constructor and Description |
---|---|
protected |
ComplexProperty()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addOnChangeEvent(IComplexPropertyChangedDelegate change)
Set event to happen when property changed.
|
<T> boolean |
canSetFieldValue(T field,
T value)
Sets value of field.
|
void |
changed()
Instance was changed.
|
protected void |
clearChangeEvents()
Clears change events list.
|
void |
clearChangeLog()
Clears the change log.
|
Boolean |
func(EwsServiceXmlReader reader) |
XmlNamespace |
getNamespace()
Gets the namespace.
|
protected void |
internalValidate()
Validates this instance.
|
void |
loadFromXml(EwsServiceXmlReader reader,
String xmlElementName)
Loads from XML.
|
void |
loadFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
Loads from XML.
|
void |
readAttributesFromXml(EwsServiceXmlReader reader)
Reads the attribute from XML.
|
void |
readTextValueFromXml(EwsServiceXmlReader reader)
Reads the text value from XML.
|
void |
removeChangeEvent(IComplexPropertyChangedDelegate change)
Remove the event from happening when property changed.
|
void |
setNamespace(XmlNamespace xmlNamespace)
Sets the namespace.
|
boolean |
tryReadElementFromXml(EwsServiceXmlReader reader)
Tries to read element from XML.
|
boolean |
tryReadElementFromXmlToPatch(EwsServiceXmlReader reader)
Tries to read element from XML to patch this property.
|
void |
updateFromXml(EwsServiceXmlReader reader,
String xmlElementName)
Loads from XML to update this property.
|
void |
updateFromXml(EwsServiceXmlReader reader,
XmlNamespace xmlNamespace,
String xmlElementName)
Loads from XML to update itself.
|
void |
validate()
Implements ISelfValidate.validate.
|
void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes elements to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
String xmlElementName)
Writes to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer,
XmlNamespace xmlNamespace,
String xmlElementName)
Writes to XML.
|
protected ComplexProperty()
public XmlNamespace getNamespace()
public void setNamespace(XmlNamespace xmlNamespace)
xmlNamespace
- the namespace.public void changed()
public <T> boolean canSetFieldValue(T field, T value)
T
- Field type.field
- The field.value
- The value.public void clearChangeLog()
public void readAttributesFromXml(EwsServiceXmlReader reader) throws Exception
reader
- The reader.Exception
- the exceptionpublic void readTextValueFromXml(EwsServiceXmlReader reader) throws Exception
reader
- The reader.Exception
- the exceptionpublic boolean tryReadElementFromXml(EwsServiceXmlReader reader) throws Exception
reader
- The reader.Exception
- the exceptionpublic boolean tryReadElementFromXmlToPatch(EwsServiceXmlReader reader) throws Exception
reader
- The reader.
True if element was read.Exception
public void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writer
- The writer.ServiceXmlSerializationException
- the service xml serialization exceptionpublic void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writer
- The writer.Exception
- the exceptionpublic void loadFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
reader
- The reader.xmlNamespace
- the xml namespacexmlElementName
- Name of the XML element.Exception
- the exceptionpublic void updateFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception
reader
- The reader.xmlElementName
- Name of the XML element.Exception
public void updateFromXml(EwsServiceXmlReader reader, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
reader
- The reader.xmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.Exception
public void loadFromXml(EwsServiceXmlReader reader, String xmlElementName) throws Exception
reader
- The reader.xmlElementName
- Name of the XML element.Exception
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName) throws Exception
writer
- The writer.xmlNamespace
- The XML namespace.xmlElementName
- Name of the XML element.Exception
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer, String xmlElementName) throws Exception
writer
- The writer.xmlElementName
- Name of the XML element.Exception
- the exceptionpublic void addOnChangeEvent(IComplexPropertyChangedDelegate change)
change
- change eventpublic void removeChangeEvent(IComplexPropertyChangedDelegate change)
change
- change eventprotected void clearChangeEvents()
public void validate() throws Exception
validate
in interface ISelfValidate
Exception
- the exceptionprotected void internalValidate() throws Exception
Exception
- the exceptionpublic Boolean func(EwsServiceXmlReader reader) throws Exception
func
in interface ComplexFunctionDelegate<EwsServiceXmlReader>
Exception
Copyright © 2012–2015 Microsoft. All rights reserved.