|
||||||||||
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.HobbyType
public class HobbyType
Defines a recreational activity that the person actively engages in. For
example, if a person has a HOBBY of "hockey", it would mean that he likes to
play hockey. Someone who just likes to watch hockey would list
"hockey" as an INTEREST (see InterestType
) instead.
//someone who likes to wind surf during the summer, but rents a boat instead of owning one VCard vcard = new VCard(); HobbyType hobby = new HobbyType("wind surfing"); hobby.setLevel(HobbyLevelParameter.LOW); vcard.addHobby(hobby);
vCard property name: HOBBY
vCard versions: 4.0
Field Summary | |
---|---|
static String |
NAME
|
Fields inherited from class ezvcard.types.TextType |
---|
value |
Fields inherited from class ezvcard.types.VCardType |
---|
group, subTypes, typeName |
Constructor Summary | |
---|---|
HobbyType()
|
|
HobbyType(String hobby)
|
Method Summary | |
---|---|
String |
getAltId()
Gets the ALTID. |
Integer |
getIndex()
Gets the INDEX parameter. |
String |
getLanguage()
Gets the language that the skill description is written in. |
HobbyLevelParameter |
getLevel()
Gets the level at which the person practices the hobby. |
Integer |
getPref()
Gets the preference value. |
VCardVersion[] |
getSupportedVersions()
Gets the vCard versions that support this type. |
String |
getType()
Gets the TYPE parameter. |
void |
setAltId(String altId)
Sets the ALTID. |
void |
setIndex(Integer index)
Sets the INDEX parameter. |
void |
setLanguage(String language)
Sets the language that the skill description is written in. |
void |
setLevel(HobbyLevelParameter level)
Sets the level at which the person practices the hobby. |
void |
setPref(Integer pref)
Sets the preference value. |
void |
setType(String type)
Sets the TYPE parameter. |
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
Constructor Detail |
---|
public HobbyType()
public HobbyType(String hobby)
hobby
- the hobby (e.g. "wind surfing")Method Detail |
---|
public VCardVersion[] getSupportedVersions()
VCardType
getSupportedVersions
in class VCardType
public HobbyLevelParameter getLevel()
VCardSubTypes.getLevel()
public void setLevel(HobbyLevelParameter level)
level
- the level (e.g. "low") or null to removeVCardSubTypes.setLevel(java.lang.String)
public Integer getIndex()
VCardSubTypes.getIndex()
public void setIndex(Integer index)
index
- the INDEX or null to removeVCardSubTypes.setIndex(java.lang.Integer)
public String getType()
public void setType(String type)
type
- the TYPE value (this should be either "work" or "home") or
null to removepublic String getLanguage()
VCardSubTypes.getLanguage()
public void setLanguage(String language)
language
- the language or null to removeVCardSubTypes.setLanguage(java.lang.String)
public Integer getPref()
vCard versions: 4.0
VCardSubTypes.getPref()
public void setPref(Integer pref)
vCard versions: 4.0
pref
- the preference value or null to removeVCardSubTypes.setPref(java.lang.Integer)
public String getAltId()
vCard versions: 4.0
VCardSubTypes.getAltId()
public void setAltId(String altId)
vCard versions: 4.0
altId
- the ALTID or null to removeVCardSubTypes.setAltId(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |