|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class for managing instances of ContactMethod
Method Summary | |
---|---|
void |
addContactMethodType(java.lang.Class cmt,
java.lang.String protocol)
Adds a new type of contact method |
ContactMethod |
getInstance(java.lang.String protocol,
java.lang.String identifier)
Gets an instance of a matching ContactMethod. |
java.lang.String[] |
getProtocols()
Returns an array of all known protocols |
ContactMethod |
parse(java.lang.String s)
Returns a ContactMethod from a string in the format protocol:identifier |
Method Detail |
---|
void addContactMethodType(java.lang.Class cmt, java.lang.String protocol) throws java.util.TooManyListenersException
cmt
- the Class object for the ContactMethod implementationprotocol
- the protocol that this ContactMethod implementation
handles
java.util.TooManyListenersException
- when a handler for this protocol has
already been definedContactMethod parse(java.lang.String s) throws java.text.ParseException
s
- the string to parse
java.text.ParseException
- if the passed string cannot be parsedgetInstance(String,String)
ContactMethod getInstance(java.lang.String protocol, java.lang.String identifier)
protocol
- the protocol for the ContactMethodidentifier
- the identifier for the ContactMethod
java.lang.String[] getProtocols()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |