Class DateTimePropertyDefinition
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
-
- microsoft.exchange.webservices.data.property.definition.ServiceObjectPropertyDefinition
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinition
-
- microsoft.exchange.webservices.data.property.definition.DateTimePropertyDefinition
-
public class DateTimePropertyDefinition extends PropertyDefinition
Represents DateTime property definition.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Date>getType()Gets the property type.booleanisNullable()Gets a value indicating whether this property definition is for a nullable type (ref, int?, bool?...).voidloadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)Loads from XML.voidwritePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation)Writes the property value to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinition
getAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, registerAssociatedInternalProperties, setName
-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.ServiceObjectPropertyDefinition
getUri, getXmlElementName, writeAttributesToXml
-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
toString, tryLoadFromXml, writeToXml
-
-
-
-
Constructor Detail
-
DateTimePropertyDefinition
public DateTimePropertyDefinition(String xmlElementName, String uri, ExchangeVersion version)
Initializes a new instance of the DateTimePropertyDefinition class.- Parameters:
xmlElementName- the xml element nameuri- the uriversion- the version
-
DateTimePropertyDefinition
public DateTimePropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
Initializes a new instance of the DateTimePropertyDefinition class.- Parameters:
xmlElementName- the xml element nameuri- the uriflags- the flagsversion- the version
-
DateTimePropertyDefinition
public DateTimePropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, boolean isNullable)
Initializes a new instance of the DateTimePropertyDefinition class.- Parameters:
xmlElementName- the xml element nameuri- the uriflags- the flagsversion- the versionisNullable- the is nullable
-
-
Method Detail
-
loadPropertyValueFromXml
public void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
Loads from XML.- Specified by:
loadPropertyValueFromXmlin classPropertyDefinition- Parameters:
reader- the readerpropertyBag- the property bag- Throws:
Exception- the exception
-
writePropertyValueToXml
public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws Exception
Writes the property value to XML.- Specified by:
writePropertyValueToXmlin classPropertyDefinition- Parameters:
writer- accepts EwsServiceXmlWriterpropertyBag- accepts PropertyBagisUpdateOperation- accepts boolean whether the context is an update operation.- Throws:
Exception- throws Exception
-
isNullable
public boolean isNullable()
Gets a value indicating whether this property definition is for a nullable type (ref, int?, bool?...).- Overrides:
isNullablein classPropertyDefinition- Returns:
- true, if is nullable
-
getType
public Class<Date> getType()
Gets the property type.- Specified by:
getTypein classPropertyDefinitionBase
-
-