public abstract class PointConstruct extends ValueConstruct implements Point
AbstractExtension.AttributesHandler
attrName
localName, namespace
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() |
protected void |
validate()
Checks the attributes to see if there are any problems.
|
consumeAttributes, equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes, setRequired
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.protected void validate() throws java.lang.IllegalStateException
AbstractExtension
validate
in class AbstractExtension
java.lang.IllegalStateException
- if any problems are found with the
attributes