|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.types.VCardType
ezvcard.types.TextType
ezvcard.types.KindType
public class KindType
Defines the type of entity that this vCard represents, such as an individual or an organization.
Setting the KIND
//use static methods to create a KindType object VCard vcard = new VCard(); KindType kind = KindType.individual(); vcard.setKind(kind);
Getting the KIND
//use "is*" methods to determine the KindType value VCard vcard = ... KindType kind = vcard.getKind(); if (kind != null){ if (kind.isIndividual()){ ... } else if (kind.isGroup()){ ... } ... }
vCard property name: KIND
vCard versions: 4.0
Field Summary | |
---|---|
static String |
APPLICATION
|
static String |
DEVICE
|
static String |
GROUP
|
static String |
INDIVIDUAL
|
static String |
LOCATION
|
static String |
NAME
|
static String |
ORG
|
Fields inherited from class ezvcard.types.TextType |
---|
value |
Fields inherited from class ezvcard.types.VCardType |
---|
group, subTypes, typeName |
Constructor Summary | |
---|---|
KindType()
|
|
KindType(String kind)
Use of this constructor is discouraged. |
Method Summary | |
---|---|
static KindType |
application()
Creates a new KIND type whose value is set to "application". |
static KindType |
device()
Creates a new KIND type whose value is set to "device". |
VCardVersion[] |
getSupportedVersions()
Gets the vCard versions that support this type. |
static KindType |
group()
Creates a new KIND type whose value is set to "group". |
static KindType |
individual()
Creates a new KIND type whose value is set to "individual". |
boolean |
isApplication()
Determines if the value is set to "application". |
boolean |
isDevice()
Determines if the value is set to "device". |
boolean |
isGroup()
Determines if the value is set to "group". |
boolean |
isIndividual()
Determines if the value is set to "individual". |
boolean |
isLocation()
Determines if the value is set to "location". |
boolean |
isOrg()
Determines if the value is set to "org". |
static KindType |
location()
Creates a new KIND type whose value is set to "location". |
static KindType |
org()
Creates a new KIND type whose value is set to "org". |
Methods inherited from class ezvcard.types.TextType |
---|
doMarshalText, doMarshalXml, doUnmarshalHtml, doUnmarshalText, doUnmarshalXml, getValue, setValue |
Methods inherited from class ezvcard.types.VCardType |
---|
compareTo, doMarshalSubTypes, getGroup, getQName, getSubTypes, getTypeName, marshalSubTypes, marshalText, marshalXml, setGroup, unmarshalHtml, unmarshalText, unmarshalXml |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String INDIVIDUAL
public static final String GROUP
public static final String ORG
public static final String LOCATION
public static final String APPLICATION
public static final String DEVICE
Constructor Detail |
---|
public KindType()
public KindType(String kind)
kind
- the kind value (e.g. "group")Method Detail |
---|
public boolean isIndividual()
public boolean isGroup()
public boolean isOrg()
public boolean isLocation()
public boolean isApplication()
public boolean isDevice()
public static KindType individual()
public static KindType group()
public static KindType org()
public static KindType location()
public static KindType application()
public static KindType device()
public VCardVersion[] getSupportedVersions()
VCardType
getSupportedVersions
in class VCardType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |