com.funambol.common.pim.model.common
Class TypifiedProperty

java.lang.Object
  extended by com.funambol.common.pim.model.common.Property
      extended by com.funambol.common.pim.model.common.TypifiedProperty
Direct Known Subclasses:
Email, Note, Phone, Photo, Title, WebPage

public class TypifiedProperty
extends Property

Represent a Property of a particular type, for usage for typified contact fields.


Field Summary
protected  java.lang.String propertyType
           
 
Fields inherited from class com.funambol.common.pim.model.common.Property
altrep, chrset, cn, cutype, delegatedFrom, delegatedTo, dir, encoding, group, language, member, partstat, propertyValue, related, sentby, tag, type, value, xParams
 
Constructor Summary
TypifiedProperty()
          Creates an empty typified property with a null property type.
TypifiedProperty(java.lang.String value)
          Creates a TypifiedProperty with the provided property value and a null property type
 
Method Summary
 boolean compare(TypifiedProperty prop)
          Compares this TypifiedProperty with another one.
 boolean equals(java.lang.Object o)
           
 java.lang.String getPropertyType()
          Returns the property type.
 int hashCode()
           
 void setPropertyType(java.lang.String propertyType)
          Sets the property type.
 
Methods inherited from class com.funambol.common.pim.model.common.Property
compare, getAltrep, getCharset, getCn, getCutype, getDelegatedFrom, getDelegatedTo, getDir, getEncoding, getGroup, getLanguage, getMember, getPartstat, getPropertyValue, getPropertyValueAsString, getRelated, getSentby, getTag, getType, getValue, getXParams, isEmptyProperty, setAltrep, setCharset, setCn, setCutype, setDelegatedFrom, setDelegatedTo, setDir, setEncoding, setGroup, setLanguage, setMember, setPartstat, setPropertyValue, setRelated, setSentby, setTag, setType, setValue, setXParams, stringFrom, stringFrom
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyType

protected java.lang.String propertyType
Constructor Detail

TypifiedProperty

public TypifiedProperty()
Creates an empty typified property with a null property type.


TypifiedProperty

public TypifiedProperty(java.lang.String value)
Creates a TypifiedProperty with the provided property value and a null property type

Parameters:
value - the property value as a string
Method Detail

getPropertyType

public java.lang.String getPropertyType()
Returns the property type.

Returns:
the value of propertyType

setPropertyType

public void setPropertyType(java.lang.String propertyType)
Sets the property type.

Parameters:
propertyType - the new value of propertyType

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Property

hashCode

public int hashCode()
Overrides:
hashCode in class Property

compare

public boolean compare(TypifiedProperty prop)
Compares this TypifiedProperty with another one.

Parameters:
prop - the other TypifiedProperty
Returns:
true if the two objects have the same contents


Copyright © 2001-2009 Funambol.