| java.lang.Object de.teamskill.util.VCard
VCard | public class VCard implements Serializable(Code) | | Class: VCard
This class represents a single VCard which is either constructed or read from
a string that must begin with 'BEGIN:VCARD' and end with 'END:VCARD'. All
fields - including possible extensions (e.g. from mozilla) - will be read.
This class overrides the toString() method for outputting a constructed the
VCard entry.
Changelog:
- 02.06.2005: Initial implementation (jf)
- 03.06.2005: changes from java.lang.String.contains() to indexOf() for
JDK 1.4 compatibility (jf)
author: Jens Fendler |
Inner Class :class VCElement | |
Method Summary | |
public List | getCardElements() | public String | getElement(String key) getElement iterates over all available card elements and returns the data
parts for all matching key elements (note: use
getElement(String,String) for additional type lookup)
key:the key to search for (e.g. | public String | getElement(String key, String type) getElement iterates over all available card elements and returns the data
parts for all matching key elements (note: use
getElement(String,String) for additional type lookup)
key:the key to search for (e.g. | public void | setCardElements(List cardElements) | public String | toString() |
getCardElements | public List getCardElements()(Code) | | getCardElements get all available elements
List of VCard.VCElement |
getElement | public String getElement(String key)(Code) | | getElement iterates over all available card elements and returns the data
parts for all matching key elements (note: use
getElement(String,String) for additional type lookup)
key:the key to search for (e.g. 'EMAIL') the first matching element or null if no match was found |
getElement | public String getElement(String key, String type)(Code) | | getElement iterates over all available card elements and returns the data
parts for all matching key elements (note: use
getElement(String,String) for additional type lookup)
key:the key to search for (e.g. 'EMAIL') type:the type of the key to search for (e.g. 'WORK') the first matching element or null if no match was found |
setCardElements | public void setCardElements(List cardElements)(Code) | | setCardElements set the card elements
cardElements:List of VCard.VCElement |
|
|