|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.wimpi.pim.util.AbstractIdentifiable
|
+--net.wimpi.pim.contact.basicimpl.PhoneNumberImpl
A basic and simple implementation of a
PhoneNumber.
| Field Summary | |
protected boolean |
m_BBS
|
protected boolean |
m_Car
|
protected boolean |
m_Cellular
|
protected boolean |
m_Fax
|
protected boolean |
m_Home
|
protected int |
m_Index
|
protected boolean |
m_ISDN
|
protected boolean |
m_Messaging
|
protected boolean |
m_MODEM
|
protected java.lang.String |
m_Number
|
protected boolean |
m_Pager
|
protected boolean |
m_PCS
|
protected boolean |
m_Preferred
|
protected boolean |
m_Video
|
protected boolean |
m_Voice
|
protected boolean |
m_Work
|
| Fields inherited from interface net.wimpi.pim.contact.model.PhoneNumber |
TYPE_BBS, TYPE_CAR, TYPE_CELLULAR, TYPE_FAX, TYPE_HOME, TYPE_ISDN, TYPE_MESSAGING, TYPE_MODEM, TYPE_PAGER, TYPE_PCS, TYPE_VIDEO, TYPE_VOICE, TYPE_WORK |
| Constructor Summary | |
PhoneNumberImpl()
|
|
| Method Summary | |
int |
getIndex()
|
java.lang.String |
getNumber()
Returns the number of this PhoneNumber. |
boolean |
isBBS()
Tests if this PhoneNumber is associated to a bulletin board system. |
boolean |
isCar()
Tests if this PhoneNumber is a car phone number. |
boolean |
isCellular()
Tests if this PhoneNumber is a cellular phone number. |
boolean |
isFax()
Tests if this PhoneNumber is a facsimile number. |
boolean |
isHome()
Tests if this PhoneNumber is associated with a residence. |
boolean |
isISDN()
Tests if this PhoneNumber is associated with ISDN service. |
boolean |
isMessaging()
Tests if this PhoneNumber has voice messaging support. |
boolean |
isMODEM()
Tests if this PhoneNumber is connected with a MODEM. |
boolean |
isPager()
Tests if this PhoneNumber is a paging device number. |
boolean |
isPCS()
Tests if this PhoneNumber is a personal communications services number. |
boolean |
isPreferred()
Tests if this PhoneNumber represents a preferred number. |
boolean |
isType(int TYPE)
Tests if this PhoneNumber is of a specific type. |
boolean |
isVideo()
Tests if this PhoneNumber is a video conferencing number. |
boolean |
isVoice()
Tests if this PhoneNumber is a voice number. |
boolean |
isWork()
Tests if this PhoneNumber is associated with a place of work. |
void |
setBBS(boolean b)
Sets or resets the bbs flag of this PhoneNumber. |
void |
setCar(boolean car)
Sets or resets the car flag of this PhoneNumber. |
void |
setCellular(boolean b)
Sets or resets the cellular flag of this PhoneNumber. |
void |
setFax(boolean b)
Sets or resets the fax flag of this PhoneNumber. |
void |
setHome(boolean b)
Sets or resets the home flag of this PhoneNumber. |
void |
setIndex(int index)
|
void |
setISDN(boolean b)
Sets or resets the ISDN flag of this PhoneNumber. |
void |
setMessaging(boolean b)
Sets or resets the messaging flag of this PhoneNumber. |
void |
setMODEM(boolean b)
Sets or resets the modem flag of this PhoneNumber. |
void |
setNumber(java.lang.String number)
Sets the number of this PhoneNumber. |
void |
setPager(boolean b)
Sets or resets the paging device flag of this PhoneNumber. |
void |
setPCS(boolean PCS)
Sets or resets the PCS flag of this PhoneNumber. |
void |
setPreferred(boolean b)
Sets or resets the preferred flag of this PhoneNumber. |
void |
setVideo(boolean b)
Sets or resets the video conferencing flag of this PhoneNumber. |
void |
setVoice(boolean b)
Sets or resets the voice flag of this PhoneNumber. |
void |
setWork(boolean b)
Sets or resets the work flag of this PhoneNumber. |
| Methods inherited from class net.wimpi.pim.util.AbstractIdentifiable |
equals, getUID, setUID |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.wimpi.pim.util.Identifiable |
getUID |
| Field Detail |
protected java.lang.String m_Number
protected boolean m_Home
protected boolean m_Work
protected boolean m_Voice
protected boolean m_Fax
protected boolean m_Messaging
protected boolean m_Cellular
protected boolean m_Pager
protected boolean m_BBS
protected boolean m_MODEM
protected boolean m_ISDN
protected boolean m_Video
protected boolean m_PCS
protected boolean m_Car
protected boolean m_Preferred
protected int m_Index
| Constructor Detail |
public PhoneNumberImpl()
| Method Detail |
public int getIndex()
public void setIndex(int index)
public java.lang.String getNumber()
PhoneNumber
getNumber in interface PhoneNumberpublic void setNumber(java.lang.String number)
PhoneNumber
setNumber in interface PhoneNumbernumber - the number as String.public boolean isWork()
PhoneNumber
isWork in interface PhoneNumberpublic void setWork(boolean b)
PhoneNumber
setWork in interface PhoneNumberb - true if associated with a place of work,
false otherwise.public boolean isHome()
PhoneNumber
isHome in interface PhoneNumberpublic void setHome(boolean b)
PhoneNumber
setHome in interface PhoneNumberb - true if associated with a residence,
false otherwise.public void setVoice(boolean b)
PhoneNumber
setVoice in interface PhoneNumberb - true if voice number, false otherwise.public boolean isVoice()
PhoneNumber
isVoice in interface PhoneNumberpublic boolean isVideo()
PhoneNumber
isVideo in interface PhoneNumberpublic void setVideo(boolean b)
PhoneNumber
setVideo in interface PhoneNumberb - true if video conferencing,
false otherwise.public boolean isFax()
PhoneNumber
isFax in interface PhoneNumberpublic void setFax(boolean b)
PhoneNumber
setFax in interface PhoneNumberb - true if facsimile, false otherwise.public boolean isMessaging()
PhoneNumber
isMessaging in interface PhoneNumberpublic void setMessaging(boolean b)
PhoneNumber
setMessaging in interface PhoneNumberb - true if has messaging, false otherwise.public boolean isCellular()
PhoneNumber
isCellular in interface PhoneNumberpublic void setCellular(boolean b)
PhoneNumber
setCellular in interface PhoneNumberb - true if cellular phone, false otherwise.public boolean isPager()
PhoneNumber
isPager in interface PhoneNumberpublic void setPager(boolean b)
PhoneNumber
setPager in interface PhoneNumberb - true if paging device number,
false otherwise.public boolean isBBS()
PhoneNumber
isBBS in interface PhoneNumberpublic void setBBS(boolean b)
PhoneNumber
setBBS in interface PhoneNumberb - true if associated with a bbs,
false otherwise.public boolean isMODEM()
PhoneNumber
isMODEM in interface PhoneNumberpublic void setMODEM(boolean b)
PhoneNumber
setMODEM in interface PhoneNumberb - true if modem connected, false otherwise.public boolean isISDN()
PhoneNumber
isISDN in interface PhoneNumberpublic void setISDN(boolean b)
PhoneNumber
setISDN in interface PhoneNumberb - true if ISDN, false otherwise.public boolean isPCS()
PhoneNumber
isPCS in interface PhoneNumberpublic void setPCS(boolean PCS)
PhoneNumber
setPCS in interface PhoneNumberPCS - true if PCS number, false otherwise.public boolean isCar()
PhoneNumber
isCar in interface PhoneNumberpublic void setCar(boolean car)
PhoneNumber
setCar in interface PhoneNumbercar - true if car phone, false otherwise.public boolean isType(int TYPE)
PhoneNumber
isType in interface PhoneNumberTYPE - a type as int.public void setPreferred(boolean b)
PhoneNumber
setPreferred in interface PhoneNumberb - true if representing a preferred number,
false otherwise.public boolean isPreferred()
PhoneNumber
isPreferred in interface PhoneNumber
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||