Class ComplexPropertyDefinition<TComplexProperty extends ComplexProperty>
- 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.ComplexPropertyDefinitionBase
-
- 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplexPropertycreatePropertyInstance(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
-
-
-
-
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 nameuri- the uriflags- the flagsversion- the versionpropertyCreationDelegate- 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 nameattachments- the attachmentsflags- the flagsversion- the versionpropertyCreationDelegate- the property creation delegate
-
-
Method Detail
-
createPropertyInstance
public ComplexProperty createPropertyInstance(ServiceObject owner)
Creates the property instance.- Specified by:
createPropertyInstancein classComplexPropertyDefinitionBase- Parameters:
owner- The owner.- Returns:
- ComplexProperty instance.
-
getType
public Class<TComplexProperty> getType()
Gets the property type.- Specified by:
getTypein classPropertyDefinitionBase
-
-