public class Deathplace extends PlaceProperty
Defines the location of the person's death.
Code sample (creating)
VCard vcard = new VCard();
//text
Deathplace deathplace = new Deathplace("Wilmslow, Cheshire, England");
vcard.setDeathplace(deathplace);
//geo coordinates
deathplace = new Deathplace(53.325, -2.239);
vcard.setDeathplace(deathplace);
//URI
deathplace = new Deathplace();
deathplace.setUri("http://en.wikipedia.org/wiki/Wilmslow");
vcard.setDeathplace(deathplace);
Code sample (retrieving)
VCard vcard = ...
Deathplace deathplace = vcard.getDeathplace();
String text = deathplace.getText();
if (text != null){
//property value is plain text
}
Double latitude = deathplace.getLatitude();
Double longitude = deathplace.getLongitude();
if (latitude != null){
//property value is a set of geo coordinates
}
String uri = deathplace.getUri();
if (uri != null){
//property value is a URI
}
Property name: DEATHPLACE
Supported versions: 4.0
geoUri, text, urigroup, parameters| Constructor and Description |
|---|
Deathplace()
Creates a new deathplace property.
|
Deathplace(double latitude,
double longitude)
Creates a new deathplace property.
|
Deathplace(String text)
Creates a new deathplace property.
|
_supportedVersions, _validate, getAltId, getGeoUri, getLanguage, getLatitude, getLongitude, getText, getUri, setAltId, setCoordinates, setGeoUri, setLanguage, setText, setUriaddParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validatepublic Deathplace()
public Deathplace(double latitude,
double longitude)
latitude - the latitude coordinate of the placelongitude - the longitude coordinate of the placepublic Deathplace(String text)
text - a text value representing the placeThis software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.