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, putAttributes
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
generate, getHandler
public 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 Point
public java.lang.Double getLongitude()
getLongitude
in interface Point
public void setGeoLocation(java.lang.Double lat, java.lang.Double lon)
Point
setGeoLocation
in interface Point
lat
- 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.Object
public void setValue(java.lang.String v)
ValueConstruct
setValue
in class ValueConstruct
v
- new value for the value construct or null
to reset.