PhoneNumber Class

Used to represent a phone number.

Constructors

public PhoneNumber( String phoneNumber, String type )
protected PhoneNumber( org.w3c.dom.Node childNode )

Methods

equals( Object obj ) returns boolean
getNumber( ) returns String
getType( ) returns String
Returns the type of phone number. Options include:
  • AssistantPhone
  • BusinessFax
  • BusinessPhone
  • BusinessPhone2
  • Callback
  • CarPhone
  • CompanyMainPhone
  • HomeFax
  • HomePhone
  • HomePhone2
  • Isdn
  • MobilePhone
  • OtherFax
  • OtherTelephone
  • Pager
  • PrimaryPhone
  • RadioPhone
  • Telex
  • TtyTddPhone
getTypes( ) returns String[]
Returns a static list of phone number types:
  • AssistantPhone
  • BusinessFax
  • BusinessPhone
  • BusinessPhone2
  • Callback
  • CarPhone
  • CompanyMainPhone
  • HomeFax
  • HomePhone
  • HomePhone2
  • Isdn
  • MobilePhone
  • OtherFax
  • OtherTelephone
  • Pager
  • PrimaryPhone
  • RadioPhone
  • Telex
  • TtyTddPhone
hashCode( ) returns int
toString( ) returns String