|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectezvcard.property.VCardProperty
ezvcard.property.Deathplace
public class Deathplace
Defines the location of the person's death.
Code sample
VCard vcard = new VCard(); //URI (geo) Deathplace deathplace = new Deathplace(); deathplace.setUri("geo:46.176502,-122.191658"); vcard.setDeathplace(deathplace); //text deathplace = new Deathplace(); deathplace.setText("Mount St. Helens"); vcard.setDeathplace(deathplace);
Property name: DEATHPLACE
Supported versions: 4.0
Field Summary |
---|
Fields inherited from class ezvcard.property.VCardProperty |
---|
group, parameters |
Constructor Summary | |
---|---|
Deathplace()
|
Method Summary | |
---|---|
Set<VCardVersion> |
_supportedVersions()
Gets the vCard versions that support this property. |
protected void |
_validate(List<Warning> warnings,
VCardVersion version,
VCard vcard)
Checks the property for data consistency problems or deviations from the spec. |
String |
getAltId()
Gets the property's ALTID parameter. |
String |
getLanguage()
Gets the language that the property value is written in. |
String |
getText()
Gets the text value. |
String |
getUri()
Gets the URI value. |
void |
setAltId(String altId)
Sets the property's ALTID parameter. |
void |
setLanguage(String language)
Sets the language that the property value is written in. |
void |
setText(String text)
Sets the value to free-form text. |
void |
setUri(String uri)
Sets the value to a URI. |
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 |
Constructor Detail |
---|
public Deathplace()
Method Detail |
---|
public Set<VCardVersion> _supportedVersions()
VCardProperty
Gets 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 VCardProperty
public String getUri()
public void setUri(String uri)
uri
- the URIpublic String getText()
public void setText(String text)
text
- the textpublic String getAltId()
HasAltId
Supported versions: 4.0
getAltId
in interface HasAltId
VCardParameters.getAltId()
public void setAltId(String altId)
HasAltId
Supported versions: 4.0
setAltId
in interface HasAltId
altId
- the ALTID or null to removeVCardParameters.setAltId(java.lang.String)
public String getLanguage()
VCardProperty
VCardParameters.getLanguage()
public void setLanguage(String language)
VCardProperty
language
- the language or null to removeVCardParameters.setLanguage(java.lang.String)
protected void _validate(List<Warning> warnings, VCardVersion version, VCard vcard)
VCardProperty
_validate
in class VCardProperty
warnings
- the list to add the warnings toversion
- the version to check the property againstvcard
- the vCard this property belongs to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |