| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mflow.impl.ContactMethodManagerImpl
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  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public void addContactMethodType(java.lang.Class cmt,
                                 java.lang.String protocol)
                          throws java.util.TooManyListenersException,
                                 java.lang.ClassCastException
ContactMethodManager
addContactMethodType in interface ContactMethodManagercmt - 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 defined
java.lang.ClassCastException
public ContactMethod parse(java.lang.String s)
                    throws java.text.ParseException
ContactMethodManager
parse in interface ContactMethodManagers - the string to parse
java.text.ParseException - if the passed string cannot be parsedContactMethodManager.getInstance(String,String)
public ContactMethod getInstance(java.lang.String protocol,
                                 java.lang.String identifier)
ContactMethodManager
getInstance in interface ContactMethodManagerprotocol - the protocol for the ContactMethodidentifier - the identifier for the ContactMethod
public java.lang.String[] getProtocols()
ContactMethodManager
getProtocols in interface ContactMethodManager
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||