|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.util.telephone.TelephoneLocalNumber
public class TelephoneLocalNumber
The seven-digit part of the telephone number, without area code.
This number is stored as 1234567 but we want to display it as 123-4567
Constructor Summary | |
---|---|
TelephoneLocalNumber()
|
Method Summary | |
---|---|
TelephoneLocalNumber |
clone()
Create a copy of the phone number. |
static TelephoneLocalNumber |
create(String telephoneLocalNumberString)
Create a telephone number from a string. |
String |
getFormattedTelephoneNumber()
Provide a human-readable formatted phone number. |
String |
getTelephoneNumber()
Get the phone number. |
void |
setTelephoneNumber(String telephoneNumber)
Set the phone number with no hyphen. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TelephoneLocalNumber()
Method Detail |
---|
public static TelephoneLocalNumber create(String telephoneLocalNumberString)
Create a telephone number from a string.
telephoneLocalNumberString
- - a phone number in the format (123-4567 or 1234567).
public String getTelephoneNumber()
Get the phone number. The representation has no hyphen.
public void setTelephoneNumber(String telephoneNumber)
Set the phone number with no hyphen.
telephoneNumber
- - the new valuepublic String getFormattedTelephoneNumber()
Provide a human-readable formatted phone number.
public TelephoneLocalNumber clone()
Create a copy of the phone number.
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |