Fields Summary |
---|
public static final String | POSTDIALPost dial method string. |
public static final String | PHONE_CONTEXT_TAGPhone context tag string. |
public static final String | ISUBISDN subaddress parameter label. |
public static final String | PROVIDER_TAGProvider tag label. |
protected boolean | isglobalFlag indicating international phone number. |
protected String | phoneNumberPhone number field. |
protected NameValueList | parmsParmeters list. |
Methods Summary |
---|
public java.lang.Object | clone()Copies the current object.
TelephoneNumber retval = new TelephoneNumber();
retval.isglobal = this.isglobal;
retval.phoneNumber = new String(this.phoneNumber);
retval.parms = (NameValueList)this.parms.clone();
return retval;
|
public void | deleteParm(java.lang.String name)Deletes the specified parameter.
parms.delete(name);
|
public java.lang.String | encode()( Encodes instance contents as a string.
String retval = "";
if (isglobal) retval += "+";
retval += phoneNumber;
if (! parms.isEmpty()) {
retval += Separators.SEMICOLON;
retval += parms.encode();
}
return retval;
|
public java.lang.String | getIsdnSubaddress()Get the isdn subaddress for this number.
return (String) parms.getValue(ISUB);
|
public java.lang.String | getPhoneNumber()Gets the PhoneNumber field.
return phoneNumber;
|
public java.lang.String | getPostDial()Gets the PostDial field.
return (String) parms.getValue(POSTDIAL);
|
public boolean | hasIsdnSubaddress()Returns true if the isdn subaddress exists.
return hasParm(ISUB);
|
public boolean | hasParm(java.lang.String pname)Returns true if this header has parameters.
return parms.hasNameValue(pname);
|
public boolean | hasPostDial()Returns true if the PostDial field exists.
return parms.getValue(POSTDIAL) != null;
|
public boolean | isGlobal()Returns tru if telephone number is a global telephone number.
return isglobal;
|
public void | removeIsdnSubaddress()Removes the isdn subaddress (if it exists).
deleteParm(ISUB);
|
public void | removePostDial()Removes the PostDial field.
parms.delete(POSTDIAL);
|
public void | setGlobal(boolean g)Sets the Global field.
isglobal = g;
|
public void | setIsdnSubaddress(java.lang.String isub)Sets the isdn subaddress for this structure.
setParm(ISUB, isub);
|
public void | setParameters(NameValueList p)Sets the list of parameters.
parms = p;
|
public void | setParm(java.lang.String name, java.lang.Object value)Sets the specified parameter.
NameValue nv = new NameValue(name, value);
parms.add(nv);
|
public void | setPhoneNumber(java.lang.String num)Sets the PhoneNumber field
phoneNumber = num;
|
public void | setPostDial(java.lang.String p)Sets the PostDial field.
NameValue nv = new NameValue(POSTDIAL, p);
parms.add(nv);
|