public class IntPropertyDefinition extends GenericPropertyDefinition<Integer>
| Constructor and Description |
|---|
IntPropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version)
Initializes a new instance of the "IntPropertyDefinition" class.
|
IntPropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version,
boolean isNullable)
Initializes a new instance of the "IntPropertyDefinition" class.
|
IntPropertyDefinition(String xmlElementName,
String uri,
ExchangeVersion version)
Initializes a new instance of the "IntPropertyDefinition" class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isNullable()
Gets a value indicating whether this property definition is for a
nullable type.
|
void |
loadPropertyValueFromXml(EwsServiceXmlReader reader,
PropertyBag propertyBag)
Loads from XML.
|
protected String |
toString(T value)
Convert instance to string.
|
void |
writePropertyValueToXml(EwsServiceXmlWriter writer,
PropertyBag propertyBag,
boolean isUpdateOperation)
Writes the property value to XML.
|
getType, parsegetAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, registerAssociatedInternalProperties, setNamegetUri, getXmlElementName, writeAttributesToXmltoString, tryLoadFromXml, writeToXmlpublic IntPropertyDefinition(String xmlElementName, String uri, ExchangeVersion version)
xmlElementName - Name of the XML element.uri - The URI.version - The version.public IntPropertyDefinition(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 IntPropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, boolean isNullable)
xmlElementName - Name of the XML element.uri - The URI.flags - The flags.version - The version.isNullable - Indicates that this property definition is for a nullable
property.public boolean isNullable()
isNullable in class PropertyDefinitionprotected String toString(T value)
value - The value.public void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
loadPropertyValueFromXml in class PropertyDefinitionreader - The reader.propertyBag - The property bag.Exception - the exceptionpublic void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws XMLStreamException, ServiceLocalException
writePropertyValueToXml in class PropertyDefinitionwriter - The writer.propertyBag - The property bag.isUpdateOperation - Indicates whether the context is an update operation.XMLStreamException - the XML stream exceptionServiceLocalException - the service local exceptionCopyright © 2012–2015 Microsoft. All rights reserved.