public abstract class PropertyDefinition extends ServiceObjectPropertyDefinition
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyDefinition(String xmlElementName,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version)
Initializes a new instance.
|
protected |
PropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version)
Initializes a new instance.
|
protected |
PropertyDefinition(String xmlElementName,
String uri,
ExchangeVersion version)
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<PropertyDefinition> |
getAssociatedInternalProperties()
Gets a list of associated internal property.
|
String |
getName()
Gets the name of the property.
|
String |
getPrintableName()
Gets the property definition's printable name.
|
ExchangeVersion |
getVersion()
Gets the minimum Exchange version that supports this property.
|
String |
getXmlElement()
Gets the name of the XML element.
|
boolean |
hasFlag(PropertyDefinitionFlags flag)
Determines whether the specified flag is set.
|
boolean |
hasFlag(PropertyDefinitionFlags flag,
ExchangeVersion version)
Determines whether the specified flag is set.
|
boolean |
isNullable()
Gets a value indicating whether this property definition is for a
nullable type.
|
abstract void |
loadPropertyValueFromXml(EwsServiceXmlReader reader,
PropertyBag propertyBag)
Loads from XML.
|
protected void |
registerAssociatedInternalProperties(List<PropertyDefinition> properties)
Registers associated internal property.
|
void |
setName(String name)
Sets the name of the property.
|
abstract void |
writePropertyValueToXml(EwsServiceXmlWriter writer,
PropertyBag propertyBag,
boolean isUpdateOperation)
Writes the property value to XML.
|
getUri, getXmlElementName, writeAttributesToXmlgetType, toString, tryLoadFromXml, writeToXmlprotected PropertyDefinition(String xmlElementName, String uri, ExchangeVersion version)
xmlElementName - Name of the XML element.uri - The URI.version - The version.protected PropertyDefinition(String xmlElementName, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
xmlElementName - Name of the XML element.flags - The flags.version - The version.protected PropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
xmlElementName - Name of the XML element.uri - The URI.flags - The flags.version - The version.public boolean hasFlag(PropertyDefinitionFlags flag)
flag - The flag.public boolean hasFlag(PropertyDefinitionFlags flag, ExchangeVersion version)
flag - The flag.protected void registerAssociatedInternalProperties(List<PropertyDefinition> properties)
properties - The list in which to add the associated property.public List<PropertyDefinition> getAssociatedInternalProperties()
public ExchangeVersion getVersion()
getVersion in class ServiceObjectPropertyDefinitionpublic boolean isNullable()
public abstract void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
reader - The reader.propertyBag - The property bag.Exception - the exceptionpublic abstract void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception
writer - the writerpropertyBag - the property bagisUpdateOperation - indicates whether the context is an update operationException - the exceptionpublic String getXmlElement()
public void setName(String name)
name - name of the propertypublic String getPrintableName()
getPrintableName in class PropertyDefinitionBaseCopyright © 2012–2015 Microsoft. All rights reserved.