public class GeoLat extends ValueConstruct
W3CPoint
Modifier and Type | Field and Description |
---|---|
static int |
COORDINATE_PRECISION
This denotes the number of significant digits after the decimal point
for a coordinate when represented by a string.
|
static double |
MAX_LAT
The maximmum acceptable value of a latitude coordinate in degrees.
|
static double |
MIN_LAT
The minimum acceptable value of a latitude coordinate in degrees.
|
Constructor and Description |
---|
GeoLat()
Creates an instance of the GeoLat extension without a latitude value set.
|
GeoLat(java.lang.Double lat)
Creates an immutable instance of GeoLat extension with the coordinate
set to the value passed in.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getLatitude()
Returns the actual double coordinate for latitude.
|
void |
setLatitude(java.lang.Double latitude)
Sets the latitude represented by this element.
|
void |
setValue(java.lang.String value)
Overrides base implementation by validating that the string represents
a latitude coordinate between -90 and 90 degrees.
|
equals, generate, getHandler, getValue, hashCode, hasValue, isRequired, putAttributes
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public static final double MAX_LAT
public static final double MIN_LAT
public static final int COORDINATE_PRECISION
public GeoLat()
public GeoLat(java.lang.Double lat) throws java.lang.IllegalArgumentException
lat
- The latitude coordinate reprensented by this element.java.lang.IllegalArgumentException
- if the the latitude is not between
-90 and 90.public java.lang.Double getLatitude()
public void setLatitude(java.lang.Double latitude)
latitude
- the latitude of this element.public void setValue(java.lang.String value)
setValue
in class ValueConstruct
value
- new value for the value construct or null
to reset.