|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.wimpi.pim.contact.io.vcard.ItemHandlerManager
Singleton for handling ItemHandler
instances.
Method Summary | |
void |
addExtensionHandler(java.lang.String xidentifier,
ItemHandler handler)
Registers an ItemHandler for the given
extension identifier. |
ItemHandler |
getItemHandler(java.lang.String identifier)
Returns the ItemHandler for the item with the
given identifier. |
static ItemHandlerManager |
getReference()
Returns the reference to this ItemHandlerManager singleton. |
boolean |
hasHandler(java.lang.String identifier)
Tests if an ItemHandler for the item with the
given identifier exists. |
java.lang.String[] |
listExtensions()
Returns a list of all extension identifiers for which an ItemHandler has been registered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public ItemHandler getItemHandler(java.lang.String identifier)
ItemHandler
for the item with the
given identifier.
identifier
- an identifier as String.
public boolean hasHandler(java.lang.String identifier)
ItemHandler
for the item with the
given identifier exists.
identifier
- an identifier as String.
public java.lang.String[] listExtensions()
public void addExtensionHandler(java.lang.String xidentifier, ItemHandler handler) throws versitException
ItemHandler
for the given
extension identifier.
xidentifier
- an identifier as String.handler
- the ItemHandler to be registered.
versitException
- if an ItemHandler has already been
registered for the given extension identifier.public static ItemHandlerManager getReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |