public class TelephoneNumber extends NetObject
Modifier and Type | Field and Description |
---|---|
protected boolean |
isglobal
isglobal field
|
static String |
ISUB |
protected NameValueList |
parameters
parmeters list
|
static String |
PHONE_CONTEXT_TAG |
protected String |
phoneNumber
phoneNumber field
|
static String |
POSTDIAL |
static String |
PROVIDER_TAG |
CORE_PACKAGE, GRUU, LR, MADDR, METHOD, NET_PACKAGE, PARSER_PACKAGE, PHONE, SIP, SIPS, TCP, TLS, TRANSPORT, TTL, UDP, USER
AND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentation
Constructor and Description |
---|
TelephoneNumber()
Creates new TelephoneNumber
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clones this object.
|
void |
deleteParm(String name)
delete the specified parameter.
|
String |
encode()
Get the string encoded version of this object
|
StringBuilder |
encode(StringBuilder buffer)
Put the encoded version of this object in the given StringBuilder.
|
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.
|
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(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
|
debugDump, debugDump, equals, match, toString
dbgPrint, dbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint
public static final String POSTDIAL
public static final String PHONE_CONTEXT_TAG
public static final String ISUB
public static final String PROVIDER_TAG
protected boolean isglobal
protected String phoneNumber
protected NameValueList parameters
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 setpublic boolean hasIsdnSubaddress()
public boolean isGlobal()
public void removePostDial()
public void removeIsdnSubaddress()
public void setParameters(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()
GenericObject
encode
in class GenericObject
public StringBuilder encode(StringBuilder buffer)
GenericObject
encode
in class GenericObject
public String getParameter(String name)
name
- name of parameter to retrievepublic Iterator<String> getParameterNames()
public void removeParameter(String parameter)
public Object clone()
GenericObject
clone
in class GenericObject
public NameValueList getParameters()
Copyright © 2018. All Rights Reserved.