public final class ExtendedPropertyDefinition extends PropertyDefinitionBase
Modifier | Constructor and Description |
---|---|
|
ExtendedPropertyDefinition()
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.
|
|
ExtendedPropertyDefinition(int tag,
MapiPropertyType mapiType)
Initializes a new instance.
|
protected |
ExtendedPropertyDefinition(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether two specified instances of ExtendedPropertyDefinition
are equal.
|
protected <T> String |
formatField(String name,
T fieldValue)
Formats the field.
|
Integer |
getId()
Gets the Id of the extended property.
|
MapiPropertyType |
getMapiType()
Gets the MAPI type of the extended property.
|
String |
getName()
Gets the name of the extended property.
|
String |
getPrintableName()
Gets the property definition's printable name.
|
DefaultExtendedPropertySet |
getPropertySet()
Gets the property set of the extended property.
|
UUID |
getPropertySetId()
Gets the property set Id or the extended property.
|
Integer |
getTag()
Gets the extended property's tag.
|
Class<?> |
getType()
Gets the property type.
|
ExchangeVersion |
getVersion()
Gets the minimum Exchange version that supports this extended property.
|
protected String |
getXmlElementName()
Gets the name of the XML element.
|
int |
hashCode() |
protected static boolean |
isEqualTo(ExtendedPropertyDefinition extPropDef1,
ExtendedPropertyDefinition extPropDef2)
Determines whether two specified instances of ExtendedPropertyDefinition are equal.
|
void |
loadFromXml(EwsServiceXmlReader reader)
Loads from XML.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
toString, tryLoadFromXml, writeToXml
public ExtendedPropertyDefinition()
protected ExtendedPropertyDefinition(MapiPropertyType mapiType)
mapiType
- The MAPI type of the extended property.public ExtendedPropertyDefinition(int tag, MapiPropertyType mapiType)
tag
- The tag of the extended property.mapiType
- The MAPI type of the extended property.public ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, String name, MapiPropertyType mapiType) throws Exception
propertySet
- The extended property set of the extended property.name
- The name of the extended property.mapiType
- The MAPI type of the extended property.Exception
- the exceptionpublic ExtendedPropertyDefinition(DefaultExtendedPropertySet propertySet, int id, MapiPropertyType mapiType)
propertySet
- The property set of the extended property.id
- The Id of the extended property.mapiType
- The MAPI type of the extended property.public ExtendedPropertyDefinition(UUID propertySetId, String name, MapiPropertyType mapiType) throws Exception
propertySetId
- The property set Id of the extended property.name
- The name of the extended property.mapiType
- The MAPI type of the extended property.Exception
- the exceptionpublic ExtendedPropertyDefinition(UUID propertySetId, int id, MapiPropertyType mapiType)
propertySetId
- The property set Id of the extended property.id
- The Id of the extended property.mapiType
- The MAPI type of the extended property.protected static boolean isEqualTo(ExtendedPropertyDefinition extPropDef1, ExtendedPropertyDefinition extPropDef2)
extPropDef1
- First extended property definition.extPropDef2
- Second extended property definition.protected String getXmlElementName()
getXmlElementName
in class PropertyDefinitionBase
public ExchangeVersion getVersion()
getVersion
in class PropertyDefinitionBase
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writeAttributesToXml
in class PropertyDefinitionBase
writer
- The writer.ServiceXmlSerializationException
- the service xml serialization exceptionpublic void loadFromXml(EwsServiceXmlReader reader) throws Exception
reader
- The reader.Exception
- the exceptionpublic boolean equals(Object obj)
public String getPrintableName()
getPrintableName
in class PropertyDefinitionBase
protected <T> String formatField(String name, T fieldValue)
T
- Type of the field.name
- The name.fieldValue
- The field value.public DefaultExtendedPropertySet getPropertySet()
public UUID getPropertySetId()
public Integer getTag()
public String getName()
public Integer getId()
public MapiPropertyType getMapiType()
public Class<?> getType()
getType
in class PropertyDefinitionBase
Copyright © 2012–2015 Microsoft. All rights reserved.