Class PropertyDefinitionBase
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
-
- Direct Known Subclasses:
ExtendedPropertyDefinition,ServiceObjectPropertyDefinition
public abstract class PropertyDefinitionBase extends Object
Represents the base class for all property definitions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPropertyDefinitionBase()Initializes a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetPrintableName()Gets the property definition's printable name.abstract Class<?>getType()Gets the type of the property.abstract ExchangeVersiongetVersion()Gets the minimum Exchange version that supports this property.protected abstract StringgetXmlElementName()Gets the name of the XML element.StringtoString()static booleantryLoadFromXml(EwsServiceXmlReader reader, OutParam<PropertyDefinitionBase> propertyDefinition)Tries to load from XML.protected abstract voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.voidwriteToXml(EwsServiceXmlWriter writer)Writes to XML.
-
-
-
Constructor Detail
-
PropertyDefinitionBase
protected PropertyDefinitionBase()
Initializes a new instance.
-
-
Method Detail
-
tryLoadFromXml
public static boolean tryLoadFromXml(EwsServiceXmlReader reader, OutParam<PropertyDefinitionBase> propertyDefinition) throws Exception
Tries to load from XML.- Parameters:
reader- The reader.propertyDefinition- The property definition.- Returns:
- True if property was loaded.
- Throws:
Exception- the exception
-
getXmlElementName
protected abstract String getXmlElementName()
Gets the name of the XML element.- Returns:
- XML element name.
-
writeAttributesToXml
protected abstract void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Parameters:
writer- The writer.- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
getVersion
public abstract ExchangeVersion getVersion()
Gets the minimum Exchange version that supports this property.- Returns:
- The version.
-
getPrintableName
public abstract String getPrintableName()
Gets the property definition's printable name.- Returns:
- The property definition's printable name.
-
writeToXml
public void writeToXml(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException
Writes to XML.- Parameters:
writer- The writer.- Throws:
XMLStreamException- the XML stream exceptionServiceXmlSerializationException- the service xml serialization exception
-
-