microsoft.exchange.webservices.data.property.definition
Class ContainedPropertyDefinition<TComplexProperty extends ComplexProperty>

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
                  extended by microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinition<TComplexProperty>
                      extended by microsoft.exchange.webservices.data.property.definition.ContainedPropertyDefinition<TComplexProperty>
Type Parameters:
TComplexProperty - The type of the complex property.

public class ContainedPropertyDefinition<TComplexProperty extends ComplexProperty>
extends ComplexPropertyDefinition<TComplexProperty>

Represents contained property definition.


Constructor Summary
ContainedPropertyDefinition(Class<TComplexProperty> cls, String xmlElementName, String uri, String containedXmlElementName, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
          Initializes a new instance of.
 
Method Summary
protected  void internalLoadFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)
          Load from XML.
 void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation)
          Writes to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinition
createPropertyInstance, getType
 
Methods inherited from class microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinitionBase
loadPropertyValueFromXml
 
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
toString, tryLoadFromXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainedPropertyDefinition

public ContainedPropertyDefinition(Class<TComplexProperty> cls,
                                   String xmlElementName,
                                   String uri,
                                   String containedXmlElementName,
                                   EnumSet<PropertyDefinitionFlags> flags,
                                   ExchangeVersion version,
                                   ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
Initializes a new instance of. ContainedPropertyDefinition

Parameters:
xmlElementName - Name of the XML element.
uri - The URI.
containedXmlElementName - Name of the contained XML element.
flags - The flags.
version - The version.
propertyCreationDelegate - Delegate used to create instances of ComplexProperty.
Method Detail

internalLoadFromXml

protected void internalLoadFromXml(EwsServiceXmlReader reader,
                                   PropertyBag propertyBag)
                            throws Exception
Load from XML.

Overrides:
internalLoadFromXml in class ComplexPropertyDefinitionBase
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.

Overrides:
writePropertyValueToXml in class ComplexPropertyDefinitionBase
Parameters:
writer - the writer
propertyBag - the property bag
isUpdateOperation - the is update operation
Throws:
Exception - the exception


Copyright © 2012–2015 Microsoft. All rights reserved.