|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.util.TelUri
public final class TelUri
Represents a URI for encoding telephone numbers.
Example tel URI: tel:+1-212-555-0101
This class is immutable. Use the TelUri.Builder
object to construct a new
instance, or the parse(java.lang.String)
method to parse a tel URI string.
Examples:
TelUri uri = new TelUri.Builder("+1-212-555-0101").extension("123").build(); TelUri uri = TelUri.parse("tel:+1-212-555-0101;ext=123"); TelUri copy = new TelUri.Builder(original).extension("124").build();
Nested Class Summary | |
---|---|
static class |
TelUri.Builder
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getExtension()
Gets the extension. |
String |
getIsdnSubaddress()
Gets the ISDN sub address. |
String |
getNumber()
Gets the phone number. |
String |
getParameter(String name)
Gets a parameter value. |
Map<String,String> |
getParameters()
Gets all parameters. |
String |
getPhoneContext()
Gets the phone context. |
int |
hashCode()
|
static TelUri |
parse(String uri)
Parses a tel URI. |
String |
toString()
Converts this tel URI to its string representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TelUri parse(String uri)
uri
- the URI
IllegalArgumentException
- if the URI cannot be parsedpublic String getNumber()
public String getPhoneContext()
public String getExtension()
public String getIsdnSubaddress()
public String getParameter(String name)
name
- the parameter name
public Map<String,String> getParameters()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |