net.wimpi.pim.contact.io.vcard
Class GenericExtensionItemHandler

java.lang.Object
  |
  +--net.wimpi.pim.contact.io.vcard.GenericExtensionItemHandler
All Implemented Interfaces:
ItemHandler

public class GenericExtensionItemHandler
extends java.lang.Object
implements ItemHandler

Class implementing a handler for simple extensions.

For reference see RFC 2426:
3.8 Extended Types

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger
See Also:
SimpleExtension

Field Summary
protected  java.lang.String m_Identifier
           
protected  GenericExtension m_Type
           
 
Constructor Summary
GenericExtensionItemHandler(GenericExtension ext)
           
 
Method Summary
 versitItem[] createItems(Contact ct)
          Creates versitItem instances, extracting information from the given Contact instance.
 void handleItem(Contact ct, versitItem item)
          Handle the given item adding information to the given Contact instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Identifier

protected java.lang.String m_Identifier

m_Type

protected GenericExtension m_Type
Constructor Detail

GenericExtensionItemHandler

public GenericExtensionItemHandler(GenericExtension ext)
Method Detail

handleItem

public void handleItem(Contact ct,
                       versitItem item)
Description copied from interface: ItemHandler
Handle the given item adding information to the given Contact instance.

Specified by:
handleItem in interface ItemHandler
Parameters:
ct - the Contact instance.
item - the versitItem to be handled.

createItems

public versitItem[] createItems(Contact ct)
Description copied from interface: ItemHandler
Creates versitItem instances, extracting information from the given Contact instance.

Specified by:
createItems in interface ItemHandler
Parameters:
ct - the Contact instance.
Returns:
a versitItem[].


Copyright © 2001-2003 jpim team.