microsoft.exchange.webservices.data.property.definition
Class ComplexPropertyDefinition<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>
Type Parameters:
TComplexProperty - The type of the complex property.
Direct Known Subclasses:
AttachmentsPropertyDefinition, ContainedPropertyDefinition

public class ComplexPropertyDefinition<TComplexProperty extends ComplexProperty>
extends ComplexPropertyDefinitionBase

Represents base complex property type.


Constructor Summary
ComplexPropertyDefinition(Class<TComplexProperty> cls, String xmlElementName, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
          Initializes a new instance.
ComplexPropertyDefinition(Class<TComplexProperty> cls, String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
          Instantiates a new complex property definition.
ComplexPropertyDefinition(Class<TComplexProperty> cls, String xmlElementName, String uri, ExchangeVersion version, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
          Initializes a new instance.
ComplexPropertyDefinition(String attachments, String xmlElementName, ExchangeVersion version, EnumSet<PropertyDefinitionFlags> flags, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
          Instantiates a new complex property definition.
ComplexPropertyDefinition(String xmlElementName, String uri, ExchangeVersion version, ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
           
 
Method Summary
 ComplexProperty createPropertyInstance(ServiceObject owner)
          Creates the property instance.
 Class<TComplexProperty> getType()
          Gets the property type.
 
Methods inherited from class microsoft.exchange.webservices.data.property.definition.ComplexPropertyDefinitionBase
internalLoadFromXml, loadPropertyValueFromXml, writePropertyValueToXml
 
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

ComplexPropertyDefinition

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

Parameters:
xmlElementName - Name of the XML element.
flags - The flags.
version - The version.
propertyCreationDelegate - Delegate used to create instances of ComplexProperty.

ComplexPropertyDefinition

public ComplexPropertyDefinition(Class<TComplexProperty> cls,
                                 String xmlElementName,
                                 String uri,
                                 ExchangeVersion version,
                                 ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
Initializes a new instance.

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

ComplexPropertyDefinition

public ComplexPropertyDefinition(String xmlElementName,
                                 String uri,
                                 ExchangeVersion version,
                                 ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)

ComplexPropertyDefinition

public ComplexPropertyDefinition(Class<TComplexProperty> cls,
                                 String xmlElementName,
                                 String uri,
                                 EnumSet<PropertyDefinitionFlags> flags,
                                 ExchangeVersion version,
                                 ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
Instantiates a new complex property definition.

Parameters:
xmlElementName - the xml element name
uri - the uri
flags - the flags
version - the version
propertyCreationDelegate - the property creation delegate

ComplexPropertyDefinition

public ComplexPropertyDefinition(String attachments,
                                 String xmlElementName,
                                 ExchangeVersion version,
                                 EnumSet<PropertyDefinitionFlags> flags,
                                 ICreateComplexPropertyDelegate<TComplexProperty> propertyCreationDelegate)
Instantiates a new complex property definition.

Parameters:
xmlElementName - the xml element name
attachments - the attachments
flags - the flags
version - the version
propertyCreationDelegate - the property creation delegate
Method Detail

createPropertyInstance

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

Specified by:
createPropertyInstance in class ComplexPropertyDefinitionBase
Parameters:
owner - The owner.
Returns:
ComplexProperty instance.

getType

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

Specified by:
getType in class PropertyDefinitionBase


Copyright © 2012–2015 Microsoft. All rights reserved.