addbk.JAddressBook
Class VCard

java.lang.Object
  extended by addbk.JAddressBook.VCard

public class VCard
extends java.lang.Object

User: Douglas Lyon Date: Apr 10, 2008 Time: 8:18:10 AM Copyright DocJava, Inc., 2007


Field Summary
static int ADR
           
static int AGENT
           
static int BDAY
           
static int BEGIN
           
static int CATEGORIES
           
static int CLASS
           
static int EMAIL
           
static int END
           
static int FN
           
static int GEO
           
static int KEY
           
static int LABEL
           
static int LOGO
           
static int MAILER
           
static int N
           
static int NAME
           
static int NICKNAME
           
static int NOTE
           
static int ORG
           
static int PHOTO
           
static int PRODID
           
static int PROFILE
           
static int REV
           
static int ROLE
           
static int SORT_STRING
           
static int SOUND
           
static int SOURCE
           
static int TEL
           
static int TITLE
           
static int TZ
           
static int UID
           
static int URL
           
static int VERSION
           
 
Constructor Summary
VCard()
           
VCard(java.lang.String card)
           
 
Method Summary
 void addType(int type, java.lang.String value, java.lang.String[] keyValues)
           
 void addType(int type, java.lang.String value, java.lang.String param1, java.lang.String value1)
           
 java.lang.String build()
           
 java.util.HashMap getParams(int type)
           
 java.util.HashMap getParams(java.lang.String type)
           
 java.lang.String getTypeValue(int type)
           
 java.lang.String getTypeValue(java.lang.String type)
           
 java.util.HashMap parseVCard(java.lang.String vcard)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FN

public static final int FN
See Also:
Constant Field Values

N

public static final int N
See Also:
Constant Field Values

NICKNAME

public static final int NICKNAME
See Also:
Constant Field Values

PHOTO

public static final int PHOTO
See Also:
Constant Field Values

BDAY

public static final int BDAY
See Also:
Constant Field Values

ADR

public static final int ADR
See Also:
Constant Field Values

LABEL

public static final int LABEL
See Also:
Constant Field Values

TEL

public static final int TEL
See Also:
Constant Field Values

EMAIL

public static final int EMAIL
See Also:
Constant Field Values

MAILER

public static final int MAILER
See Also:
Constant Field Values

TZ

public static final int TZ
See Also:
Constant Field Values

GEO

public static final int GEO
See Also:
Constant Field Values

TITLE

public static final int TITLE
See Also:
Constant Field Values

ROLE

public static final int ROLE
See Also:
Constant Field Values

LOGO

public static final int LOGO
See Also:
Constant Field Values

AGENT

public static final int AGENT
See Also:
Constant Field Values

ORG

public static final int ORG
See Also:
Constant Field Values

CATEGORIES

public static final int CATEGORIES
See Also:
Constant Field Values

NOTE

public static final int NOTE
See Also:
Constant Field Values

PRODID

public static final int PRODID
See Also:
Constant Field Values

REV

public static final int REV
See Also:
Constant Field Values

SORT_STRING

public static final int SORT_STRING
See Also:
Constant Field Values

SOUND

public static final int SOUND
See Also:
Constant Field Values

URL

public static final int URL
See Also:
Constant Field Values

UID

public static final int UID
See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values

CLASS

public static final int CLASS
See Also:
Constant Field Values

KEY

public static final int KEY
See Also:
Constant Field Values

SOURCE

public static final int SOURCE
See Also:
Constant Field Values

NAME

public static final int NAME
See Also:
Constant Field Values

PROFILE

public static final int PROFILE
See Also:
Constant Field Values

BEGIN

public static final int BEGIN
See Also:
Constant Field Values

END

public static final int END
See Also:
Constant Field Values
Constructor Detail

VCard

public VCard()

VCard

public VCard(java.lang.String card)
      throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getParams

public java.util.HashMap getParams(java.lang.String type)

getParams

public java.util.HashMap getParams(int type)

getTypeValue

public java.lang.String getTypeValue(int type)

getTypeValue

public java.lang.String getTypeValue(java.lang.String type)

addType

public void addType(int type,
                    java.lang.String value,
                    java.lang.String param1,
                    java.lang.String value1)

addType

public void addType(int type,
                    java.lang.String value,
                    java.lang.String[] keyValues)

parseVCard

public java.util.HashMap parseVCard(java.lang.String vcard)
                             throws java.lang.Exception
Throws:
java.lang.Exception

build

public java.lang.String build()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object