com.funambol.common.pim.model.contact
Class Phone

java.lang.Object
  extended by com.funambol.common.pim.model.common.Property
      extended by com.funambol.common.pim.model.common.TypifiedProperty
          extended by com.funambol.common.pim.model.contact.Phone

public class Phone
extends TypifiedProperty

An object representing a phone number. This class holds informations about the type of the telephone number (businness, home etc.) and the number itself


Field Summary
 
Fields inherited from class com.funambol.common.pim.model.common.TypifiedProperty
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
Phone()
          Creates an empty telephone number
Phone(java.lang.String value)
          Creates a telehpone number (Property) with the value.
 
Method Summary
static java.lang.String getBusinessFaxNumberID(int idx)
           
static java.lang.String getBusinessPhoneNumberID(int idx)
           
static java.lang.String getCallbackPhoneNumberID(int idx)
           
static java.lang.String getCarPhoneNumberID(int idx)
           
static java.lang.String getCompanyPhoneNumberID(int idx)
           
static java.lang.String getDCOnlyPhoneNumberID(int idx)
           
static java.lang.String getHomeFaxNumberID(int idx)
           
static java.lang.String getHomePhoneNumberID(int idx)
           
static java.lang.String getMobileBusinessPhoneNumberID(int idx)
           
static java.lang.String getMobileDCPhoneNumberID(int idx)
           
static java.lang.String getMobileHomePhoneNumberID(int idx)
           
static java.lang.String getMobilePhoneNumberID(int idx)
           
static java.lang.String getOtherFaxNumberID(int idx)
           
static java.lang.String getOtherPhoneNumberID(int idx)
           
static java.lang.String getPagerNumberID(int idx)
           
 java.lang.String getPhoneType()
          Returns the phone type for this phone
static java.lang.String getPrimaryPhoneNumberID(int idx)
           
static java.lang.String getRadioPhoneNumberID(int idx)
           
static java.lang.String getTelexNumberID(int idx)
           
 void setPhoneType(java.lang.String phoneType)
          Sets the phone type for this phone
 
Methods inherited from class com.funambol.common.pim.model.common.TypifiedProperty
compare, equals, getPropertyType, hashCode, setPropertyType
 
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
 

Constructor Detail

Phone

public Phone()
Creates an empty telephone number


Phone

public Phone(java.lang.String value)
Creates a telehpone number (Property) with the value.

Method Detail

getMobileDCPhoneNumberID

public static java.lang.String getMobileDCPhoneNumberID(int idx)

getDCOnlyPhoneNumberID

public static java.lang.String getDCOnlyPhoneNumberID(int idx)

getTelexNumberID

public static java.lang.String getTelexNumberID(int idx)

getRadioPhoneNumberID

public static java.lang.String getRadioPhoneNumberID(int idx)

getCallbackPhoneNumberID

public static java.lang.String getCallbackPhoneNumberID(int idx)

getPrimaryPhoneNumberID

public static java.lang.String getPrimaryPhoneNumberID(int idx)

getCompanyPhoneNumberID

public static java.lang.String getCompanyPhoneNumberID(int idx)

getCarPhoneNumberID

public static java.lang.String getCarPhoneNumberID(int idx)

getPagerNumberID

public static java.lang.String getPagerNumberID(int idx)

getMobilePhoneNumberID

public static java.lang.String getMobilePhoneNumberID(int idx)

getMobileHomePhoneNumberID

public static java.lang.String getMobileHomePhoneNumberID(int idx)

getMobileBusinessPhoneNumberID

public static java.lang.String getMobileBusinessPhoneNumberID(int idx)

getOtherPhoneNumberID

public static java.lang.String getOtherPhoneNumberID(int idx)

getHomePhoneNumberID

public static java.lang.String getHomePhoneNumberID(int idx)

getBusinessPhoneNumberID

public static java.lang.String getBusinessPhoneNumberID(int idx)

getOtherFaxNumberID

public static java.lang.String getOtherFaxNumberID(int idx)

getHomeFaxNumberID

public static java.lang.String getHomeFaxNumberID(int idx)

getBusinessFaxNumberID

public static java.lang.String getBusinessFaxNumberID(int idx)

getPhoneType

public java.lang.String getPhoneType()
Returns the phone type for this phone

Returns:
the phone type for this phone

setPhoneType

public void setPhoneType(java.lang.String phoneType)
Sets the phone type for this phone

Parameters:
phoneType - the phone type to set


Copyright © 2001-2009 Funambol.