public class DateTimePropertyDefinition extends PropertyDefinition
Constructor and Description |
---|
DateTimePropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version)
Initializes a new instance of the DateTimePropertyDefinition class.
|
DateTimePropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version,
boolean isNullable)
Initializes a new instance of the DateTimePropertyDefinition class.
|
DateTimePropertyDefinition(String xmlElementName,
String uri,
ExchangeVersion version)
Initializes a new instance of the DateTimePropertyDefinition class.
|
Modifier and Type | Method and Description |
---|---|
Class<Date> |
getType()
Gets the property type.
|
boolean |
isNullable()
Gets a value indicating whether this property definition is for a
nullable type (ref, int?
|
void |
loadPropertyValueFromXml(EwsServiceXmlReader reader,
PropertyBag propertyBag)
Loads from XML.
|
void |
writePropertyValueToXml(EwsServiceXmlWriter writer,
PropertyBag propertyBag,
boolean isUpdateOperation)
Writes the property value to XML.
|
getAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, registerAssociatedInternalProperties, setName
getUri, getXmlElementName, writeAttributesToXml
toString, tryLoadFromXml, writeToXml
public DateTimePropertyDefinition(String xmlElementName, String uri, ExchangeVersion version)
xmlElementName
- the xml element nameuri
- the uriversion
- the versionpublic DateTimePropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
xmlElementName
- the xml element nameuri
- the uriflags
- the flagsversion
- the versionpublic DateTimePropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, boolean isNullable)
xmlElementName
- the xml element nameuri
- the uriflags
- the flagsversion
- the versionisNullable
- the is nullablepublic void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
loadPropertyValueFromXml
in class PropertyDefinition
reader
- the readerpropertyBag
- the property bagException
- the exceptionpublic void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception
writePropertyValueToXml
in class PropertyDefinition
writer
- accepts EwsServiceXmlWriterpropertyBag
- accepts PropertyBagisUpdateOperation
- accepts boolean whether the context is an update operation.Exception
- throws Exceptionpublic boolean isNullable()
isNullable
in class PropertyDefinition
public Class<Date> getType()
getType
in class PropertyDefinitionBase
Copyright © 2012–2015 Microsoft. All rights reserved.