microsoft.exchange.webservices.data
Class IndexedPropertyDefinition

java.lang.Object
  extended by microsoft.exchange.webservices.data.PropertyDefinitionBase
      extended by microsoft.exchange.webservices.data.ServiceObjectPropertyDefinition
          extended by microsoft.exchange.webservices.data.IndexedPropertyDefinition

public final class IndexedPropertyDefinition
extends ServiceObjectPropertyDefinition

Represents an indexed property definition.


Constructor Summary
protected IndexedPropertyDefinition(java.lang.String uri, java.lang.String index)
          Initializes a new instance of the IndexedPropertyDefinition class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether a given indexed property definition is equal to this indexed property definition.
 java.lang.String getIndex()
          Gets the index of the property.
protected  java.lang.String getPrintableName()
          Gets the property definition's printable name.
 java.lang.Class getType()
          Gets the property type.
protected  java.lang.String getXmlElementName()
          Gets the name of the XML element.
 int hashCode()
          Serves as a hash function for a particular type.
protected static boolean isEqualTo(IndexedPropertyDefinition idxPropDef1, IndexedPropertyDefinition idxPropDef2)
          Determines whether two specified instances of IndexedPropertyDefinition are equal.
protected  void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
          * Writes the attributes to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ServiceObjectPropertyDefinition
getUri, getVersion
 
Methods inherited from class microsoft.exchange.webservices.data.PropertyDefinitionBase
toString, tryLoadFromXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedPropertyDefinition

protected IndexedPropertyDefinition(java.lang.String uri,
                                    java.lang.String index)
Initializes a new instance of the IndexedPropertyDefinition class.

Parameters:
uri - The FieldURI attribute of the IndexedFieldURI element.
index - The Index attribute of the IndexedFieldURI element.
Method Detail

isEqualTo

protected static boolean isEqualTo(IndexedPropertyDefinition idxPropDef1,
                                   IndexedPropertyDefinition idxPropDef2)
Determines whether two specified instances of IndexedPropertyDefinition are equal.

Parameters:
idxPropDef1 - First indexed property definition.
idxPropDef2 - Second indexed property definition.
Returns:
True if indexed property definitions are equal.

getIndex

public java.lang.String getIndex()
Gets the index of the property.

Returns:
The index string of the property.

writeAttributesToXml

protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
                             throws ServiceXmlSerializationException
* Writes the attributes to XML.

Overrides:
writeAttributesToXml in class ServiceObjectPropertyDefinition
Parameters:
writer - the writer
Throws:
ServiceXmlSerializationException - the service xml serialization exception

getXmlElementName

protected java.lang.String getXmlElementName()
Gets the name of the XML element.

Overrides:
getXmlElementName in class ServiceObjectPropertyDefinition
Returns:
XML element name.

getPrintableName

protected java.lang.String getPrintableName()
Gets the property definition's printable name.

Specified by:
getPrintableName in class PropertyDefinitionBase
Returns:
The property definition's printable name.

equals

public boolean equals(java.lang.Object obj)
Determines whether a given indexed property definition is equal to this indexed property definition.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to check for equality.
Returns:
True if the properties definitions define the same indexed property.

hashCode

public int hashCode()
Serves as a hash function for a particular type.

Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for the current System.Object

getType

public java.lang.Class getType()
Gets the property type.

Specified by:
getType in class PropertyDefinitionBase