|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.address.NetObject
gov.nist.javax.sip.address.TelephoneNumber
public class TelephoneNumber
Telephone number class.
Field Summary | |
---|---|
static String |
ISUB
|
static String |
PHONE_CONTEXT_TAG
|
static String |
POSTDIAL
|
static String |
PROVIDER_TAG
|
Constructor Summary | |
---|---|
TelephoneNumber()
Creates new TelephoneNumber |
Method Summary | |
---|---|
Object |
clone()
Clones this object. |
void |
deleteParm(String name)
delete the specified parameter. |
String |
encode()
Get the string encoded version of this object |
StringBuffer |
encode(StringBuffer buffer)
Put the encoded version of this object in the given StringBuffer. |
String |
getIsdnSubaddress()
Get the isdn subaddress for this number. |
String |
getParameter(String name)
Returns the value of the named parameter, or null if it is not set. |
Iterator<String> |
getParameterNames()
Returns an Iterator over the names (Strings) of all parameters. |
gov.nist.core.NameValueList |
getParameters()
|
String |
getPhoneNumber()
get the PhoneNumber field |
String |
getPostDial()
get the PostDial field |
boolean |
hasIsdnSubaddress()
return true if the isdn subaddress exists. |
boolean |
hasParm(String pname)
return true if this header has parameters. |
boolean |
hasPostDial()
returns true if th PostDial field exists |
boolean |
isGlobal()
is a global telephone number. |
void |
removeIsdnSubaddress()
Remove the isdn subaddress (if it exists). |
void |
removeParameter(String parameter)
|
void |
removePostDial()
remove the PostDial field |
void |
setGlobal(boolean g)
set the Global field |
void |
setIsdnSubaddress(String isub)
set the isdn subaddress for this structure. |
void |
setParameter(String name,
String value)
|
void |
setParameters(gov.nist.core.NameValueList p)
Set the list of parameters. |
void |
setParm(String name,
Object value)
set the specified parameter |
void |
setPhoneNumber(String num)
set the PhoneNumber field |
void |
setPostDial(String p)
set the PostDial field |
Methods inherited from class gov.nist.javax.sip.address.NetObject |
---|
debugDump, debugDump, equals, match, toString |
Methods inherited from class gov.nist.core.GenericObject |
---|
getClassFromName, getMatcher, isMySubclass, makeClone, merge, setMatcher |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String POSTDIAL
public static final String PHONE_CONTEXT_TAG
public static final String ISUB
public static final String PROVIDER_TAG
Constructor Detail |
---|
public TelephoneNumber()
Method Detail |
---|
public void deleteParm(String name)
name
- String to setpublic String getPhoneNumber()
public String getPostDial()
public String getIsdnSubaddress()
public boolean hasPostDial()
public boolean hasParm(String pname)
pname
- String to set
public boolean hasIsdnSubaddress()
public boolean isGlobal()
public void removePostDial()
public void removeIsdnSubaddress()
public void setParameters(gov.nist.core.NameValueList p)
p
- NameValueList to setpublic void setGlobal(boolean g)
g
- boolean to setpublic void setPostDial(String p)
p
- String to setpublic void setParm(String name, Object value)
name
- String to setvalue
- Object to setpublic void setIsdnSubaddress(String isub)
isub
- String to setpublic void setPhoneNumber(String num)
num
- String to setpublic String encode()
gov.nist.core.GenericObject
encode
in class gov.nist.core.GenericObject
public StringBuffer encode(StringBuffer buffer)
gov.nist.core.GenericObject
encode
in class gov.nist.core.GenericObject
public String getParameter(String name)
name
- name of parameter to retrieve
public Iterator<String> getParameterNames()
public void removeParameter(String parameter)
public void setParameter(String name, String value)
public Object clone()
gov.nist.core.GenericObject
clone
in class gov.nist.core.GenericObject
public gov.nist.core.NameValueList getParameters()
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |