| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectezvcard.property.VCardProperty
ezvcard.property.SimpleProperty<String>
ezvcard.property.TextProperty
ezvcard.property.Kind
public class Kind
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 Kind object VCard vcard = new VCard(); Kind kind = Kind.individual(); vcard.setKind(kind);
Getting the KIND
 //use "is*" methods to determine the Kind value
 VCard vcard = ...
 Kind kind = vcard.getKind();
 if (kind != null){
   if (kind.isIndividual()){
     ...
   } else if (kind.isGroup()){
     ...
   }
   ...
 }
 
 
 
 Property name: KIND
 
 Supported versions: 4.0
 
| Field Summary | |
|---|---|
static String | 
APPLICATION
 | 
static String | 
DEVICE
 | 
static String | 
GROUP
 | 
static String | 
INDIVIDUAL
 | 
static String | 
LOCATION
 | 
static String | 
ORG
 | 
| Fields inherited from class ezvcard.property.SimpleProperty | 
|---|
value | 
| Fields inherited from class ezvcard.property.VCardProperty | 
|---|
group, parameters | 
| Constructor Summary | |
|---|---|
Kind(String kind)
Creates a kind property.  | 
|
| Method Summary | |
|---|---|
 Set<VCardVersion> | 
_supportedVersions()
Gets the vCard versions that support this property.  | 
static Kind | 
application()
Creates a new KIND property whose value is set to "application".  | 
static Kind | 
device()
Creates a new KIND property whose value is set to "device".  | 
static Kind | 
group()
Creates a new KIND property whose value is set to "group".  | 
static Kind | 
individual()
Creates a new KIND property 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 Kind | 
location()
Creates a new KIND property whose value is set to "location".  | 
static Kind | 
org()
Creates a new KIND property whose value is set to "org".  | 
| Methods inherited from class ezvcard.property.SimpleProperty | 
|---|
_validate, getValue, setValue | 
| Methods inherited from class ezvcard.property.VCardProperty | 
|---|
addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
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 Kind(String kind)
kind - the kind value (e.g. "group")| Method Detail | 
|---|
public Set<VCardVersion> _supportedVersions()
VCardPropertyGets the vCard versions that support this property.
This method should be overridden by child classes if the property does not support all vCard versions. The default implementation of this method returns all vCard versions.
_supportedVersions in class VCardPropertypublic boolean isIndividual()
public boolean isGroup()
public boolean isOrg()
public boolean isLocation()
public boolean isApplication()
public boolean isDevice()
public static Kind individual()
public static Kind group()
public static Kind org()
public static Kind location()
public static Kind application()
public static Kind device()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||