public abstract class PointConstruct extends ValueConstruct implements Point
AbstractExtension.AttributesHandlerattrNamelocalName, 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, setRequireddisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgenerate, 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.protected void validate()
throws java.lang.IllegalStateException
AbstractExtensionvalidate in class AbstractExtensionjava.lang.IllegalStateException - if any problems are found with the
attributes