microsoft.exchange.webservices.data.property.definition
Class DateTimePropertyDefinition

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
      extended by microsoft.exchange.webservices.data.property.definition.ServiceObjectPropertyDefinition
          extended by microsoft.exchange.webservices.data.property.definition.PropertyDefinition
              extended by microsoft.exchange.webservices.data.property.definition.DateTimePropertyDefinition

public class DateTimePropertyDefinition
extends PropertyDefinition

Represents DateTime property definition.


Constructor Summary
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
 Class<Date> getType()
          Gets the property type.
 boolean isNullable()
          Gets a value indicating whether this property definition is for a nullable type (ref, int?, bool?...).
 void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
          Loads from XML.
 void writePropertyValueToXml(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimePropertyDefinition

public DateTimePropertyDefinition(String xmlElementName,
                                  String uri,
                                  ExchangeVersion version)
Initializes a new instance of the DateTimePropertyDefinition class.

Parameters:
xmlElementName - the xml element name
uri - the uri
version - 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 name
uri - the uri
flags - the flags
version - 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 name
uri - the uri
flags - the flags
version - the version
isNullable - the is nullable
Method Detail

loadPropertyValueFromXml

public void loadPropertyValueFromXml(EwsServiceXmlReader reader,
                                     PropertyBag propertyBag)
                              throws Exception
Loads from XML.

Specified by:
loadPropertyValueFromXml in class PropertyDefinition
Parameters:
reader - the reader
propertyBag - 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:
writePropertyValueToXml in class PropertyDefinition
Parameters:
writer - accepts EwsServiceXmlWriter
propertyBag - accepts PropertyBag
isUpdateOperation - 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:
isNullable in class PropertyDefinition
Returns:
true, if is nullable

getType

public Class<Date> getType()
Gets the property type.

Specified by:
getType in class PropertyDefinitionBase


Copyright © 2012–2015 Microsoft. All rights reserved.