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

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.ComplexPropertyDefinitionBase
Direct Known Subclasses:
ComplexPropertyDefinition, PermissionSetPropertyDefinition

public abstract class ComplexPropertyDefinitionBase
extends PropertyDefinition

Represents abstract complex property definition.


Constructor Summary
protected ComplexPropertyDefinitionBase(String xmlElementName, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
          Initializes a new instance.
protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
          Initializes a new instance.
protected ComplexPropertyDefinitionBase(String xmlElementName, String uri, ExchangeVersion version)
          Initializes a new instance.
 
Method Summary
abstract  ComplexProperty createPropertyInstance(ServiceObject owner)
          Creates the property instance.
protected  void internalLoadFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
          Internals the load from XML.
 void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
          Loads from XML.
 void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation)
          Writes to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinition
getAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, isNullable, 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
getType, toString, tryLoadFromXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexPropertyDefinitionBase

protected ComplexPropertyDefinitionBase(String xmlElementName,
                                        EnumSet<PropertyDefinitionFlags> flags,
                                        ExchangeVersion version)
Initializes a new instance.

Parameters:
xmlElementName - Name of the XML element.
flags - The flags.
version - The version.

ComplexPropertyDefinitionBase

protected ComplexPropertyDefinitionBase(String xmlElementName,
                                        String uri,
                                        ExchangeVersion version)
Initializes a new instance.

Parameters:
xmlElementName - Name of the XML element.
uri - The URI.
version - The version.

ComplexPropertyDefinitionBase

protected ComplexPropertyDefinitionBase(String xmlElementName,
                                        String uri,
                                        EnumSet<PropertyDefinitionFlags> flags,
                                        ExchangeVersion version)
Initializes a new instance.

Parameters:
xmlElementName - Name of the XML element.
uri - The URI.
flags - The flags.
version - The version.
Method Detail

createPropertyInstance

public abstract ComplexProperty createPropertyInstance(ServiceObject owner)
Creates the property instance.

Parameters:
owner - The owner.
Returns:
ComplexProperty.

internalLoadFromXml

protected void internalLoadFromXml(EwsServiceXmlReader reader,
                                   PropertyBag propertyBag)
                            throws Exception
Internals the load from XML.

Parameters:
reader - The reader.
propertyBag - The property bag.
Throws:
Exception - the exception

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 to XML.

Specified by:
writePropertyValueToXml in class PropertyDefinition
Parameters:
writer - The writer.
propertyBag - The property bag.
isUpdateOperation - Indicates whether the context is an update operation.
Throws:
Exception - the exception


Copyright © 2012–2015 Microsoft. All rights reserved.