public abstract class PointConstruct extends ValueConstruct implements Point
| Constructor and Description |
|---|
PointConstruct(XmlNamespace namespace,
java.lang.String name)
Constructor to create an empty point object.
|
PointConstruct(XmlNamespace namespace,
java.lang.String name,
java.lang.Double lat,
java.lang.Double lon)
Constructor to create a point from a given lat/lon pair.
|
PointConstruct(XmlNamespace namespace,
java.lang.String name,
Point copyFrom)
Copy constructor to create a point from another point.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getLatitude() |
java.lang.Double |
getLongitude() |
void |
setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
Sets the latitude and longitude coordinates of this Point.
|
void |
setValue(java.lang.String v)
Sets the value.
|
java.lang.String |
toString() |
equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributesdisableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutablegenerate, getHandlerpublic PointConstruct(XmlNamespace namespace, java.lang.String name)
public PointConstruct(XmlNamespace namespace, java.lang.String name, java.lang.Double lat, java.lang.Double lon)
public PointConstruct(XmlNamespace namespace, java.lang.String name, Point copyFrom)
public java.lang.Double getLatitude()
getLatitude in interface Pointpublic java.lang.Double getLongitude()
getLongitude in interface Pointpublic void setGeoLocation(java.lang.Double lat,
java.lang.Double lon)
PointsetGeoLocation in interface Pointlat - The latitude in degrees, from -90 to 90.lon - The longitude in degrees, from -180 to 180.public java.lang.String toString()
toString in class java.lang.Objectpublic void setValue(java.lang.String v)
ValueConstructsetValue in class ValueConstructv - new value for the value construct or null to reset.