Class ExtendedPropertyDefinition
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
-
- microsoft.exchange.webservices.data.property.definition.ExtendedPropertyDefinition
-
public final class ExtendedPropertyDefinition extends PropertyDefinitionBase
Represents the definition of an extended property.
-
-
Constructor Summary
Constructors Modifier Constructor Description ExtendedPropertyDefinition()Initializes a new instance.ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType)Initializes a new instance.ExtendedPropertyDefinition(UUID propertySetId, int id, MapiPropertyType mapiType)Initializes a new instance.ExtendedPropertyDefinition(UUID propertySetId, String name, MapiPropertyType mapiType)Initializes a new instance.ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, int id, MapiPropertyType mapiType)Initializes a new instance.ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, String name, MapiPropertyType mapiType)Initializes a new instance.protectedExtendedPropertyDefinition(MapiPropertyType mapiType)Initializes a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Determines whether two specified instances of ExtendedPropertyDefinition are equal.protected <T> StringformatField(String name, T fieldValue)Formats the field.IntegergetId()Gets the Id of the extended property.MapiPropertyTypegetMapiType()Gets the MAPI type of the extended property.StringgetName()Gets the name of the extended property.StringgetPrintableName()Gets the property definition's printable name.DefaultExtendedPropertySetgetPropertySet()Gets the property set of the extended property.UUIDgetPropertySetId()Gets the property set Id or the extended property.IntegergetTag()Gets the extended property's tag.Class<?>getType()Gets the property type.ExchangeVersiongetVersion()Gets the minimum Exchange version that supports this extended property.protected StringgetXmlElementName()Gets the name of the XML element.inthashCode()protected static booleanisEqualTo(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)Determines whether two specified instances of ExtendedPropertyDefinition are equal.voidloadFromXml(EwsServiceXmlReader reader)Loads from XML.protected voidwriteAttributesToXml(EwsServiceXmlWriter writer)Writes the attribute to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
toString, tryLoadFromXml, writeToXml
-
-
-
-
Constructor Detail
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition()
Initializes a new instance.
-
ExtendedPropertyDefinition
protected ExtendedPropertyDefinition(MapiPropertyType mapiType)
Initializes a new instance.- Parameters:
mapiType- The MAPI type of the extended property.
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType)
Initializes a new instance.- Parameters:
tag- The tag of the extended property.mapiType- The MAPI type of the extended property.
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, String name, MapiPropertyType mapiType) throws Exception
Initializes a new instance.- Parameters:
propertySet- The extended property set of the extended property.name- The name of the extended property.mapiType- The MAPI type of the extended property.- Throws:
Exception- the exception
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, int id, MapiPropertyType mapiType)
Initializes a new instance.- Parameters:
propertySet- The property set of the extended property.id- The Id of the extended property.mapiType- The MAPI type of the extended property.
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition(UUID propertySetId, String name, MapiPropertyType mapiType) throws Exception
Initializes a new instance.- Parameters:
propertySetId- The property set Id of the extended property.name- The name of the extended property.mapiType- The MAPI type of the extended property.- Throws:
Exception- the exception
-
ExtendedPropertyDefinition
public ExtendedPropertyDefinition(UUID propertySetId, int id, MapiPropertyType mapiType)
Initializes a new instance.- Parameters:
propertySetId- The property set Id of the extended property.id- The Id of the extended property.mapiType- The MAPI type of the extended property.
-
-
Method Detail
-
isEqualTo
protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)
Determines whether two specified instances of ExtendedPropertyDefinition are equal.- Parameters:
extPropDef1- First extended property definition.extPropDef2- Second extended property definition.- Returns:
- True if extended property definitions are equal.
-
getXmlElementName
protected String getXmlElementName()
Gets the name of the XML element.- Specified by:
getXmlElementNamein classPropertyDefinitionBase- Returns:
- XML element name.
-
getVersion
public ExchangeVersion getVersion()
Gets the minimum Exchange version that supports this extended property.- Specified by:
getVersionin classPropertyDefinitionBase- Returns:
- The version.
-
writeAttributesToXml
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
Writes the attribute to XML.- Specified by:
writeAttributesToXmlin classPropertyDefinitionBase- Parameters:
writer- The writer.- Throws:
ServiceXmlSerializationException- the service xml serialization exception
-
loadFromXml
public void loadFromXml(EwsServiceXmlReader reader) throws Exception
Loads from XML.- Parameters:
reader- The reader.- Throws:
Exception- the exception
-
equals
public boolean equals(Object obj)
Determines whether two specified instances of ExtendedPropertyDefinition are equal.
-
getPrintableName
public String getPrintableName()
Gets the property definition's printable name.- Specified by:
getPrintableNamein classPropertyDefinitionBase- Returns:
- The property definition's printable name.
-
formatField
protected <T> String formatField(String name, T fieldValue)
Formats the field.- Type Parameters:
T- Type of the field.- Parameters:
name- The name.fieldValue- The field value.- Returns:
- the string
-
getPropertySet
public DefaultExtendedPropertySet getPropertySet()
Gets the property set of the extended property.- Returns:
- property set of the extended property.
-
getPropertySetId
public UUID getPropertySetId()
Gets the property set Id or the extended property.- Returns:
- property set Id or the extended property.
-
getTag
public Integer getTag()
Gets the extended property's tag.- Returns:
- The extended property's tag.
-
getName
public String getName()
Gets the name of the extended property.- Returns:
- The name of the extended property.
-
getId
public Integer getId()
Gets the Id of the extended property.- Returns:
- The Id of the extended property.
-
getMapiType
public MapiPropertyType getMapiType()
Gets the MAPI type of the extended property.- Returns:
- The MAPI type of the extended property.
-
getType
public Class<?> getType()
Gets the property type.- Specified by:
getTypein classPropertyDefinitionBase
-
-