|
||||||||||
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.InterestType
public class InterestType
Defines a recreational activity that the person is interested in. For
example, if a person has a INTEREST of "hockey", it would mean that he likes
to watch hockey games. Someone who likes to actually play hockey would
list "hockey" as a HOBBY (see HobbyType
) instead.
//someone who attends all of his favorite hockey team's games in person. VCard vcard = new VCard(); InterestType interest = new InterestType("hockey"); interest.setLevel(InterestLevelParameter.HIGH); vcard.addInterest(interest);
vCard property name: INTEREST
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 | |
---|---|
InterestType()
|
|
InterestType(String interest)
|
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. |
InterestLevelParameter |
getLevel()
Gets the level of the person's interest. |
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(InterestLevelParameter level)
Sets the level of the person's interest. |
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 InterestType()
public InterestType(String interest)
interest
- the hobby (e.g. "wind surfing")Method Detail |
---|
public VCardVersion[] getSupportedVersions()
VCardType
getSupportedVersions
in class VCardType
public InterestLevelParameter getLevel()
VCardSubTypes.getLevel()
public void setLevel(InterestLevelParameter 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 |