public class Lat extends AMetadata<Lat> implements Comparable<Lat>
The geographical latitude (degrees, minutes, seconds and hemisphere N or S)
of the Point or center of the Ellipse. Same remarks for seconds and leading
zeros. enter N or S immediately following the seconds. The format is:
ddmmss.hhH
(where ".hh" is optional and H = N or S).
[XSD ERR REGEX] This data item MUST comply to the regular expression: "(((((([0-8][0-9]))([0-5][0-9]){2})(. [0-9]{1,2})?)|900000)(N|S))|X"
Developer note: This Lat
is an extension and replacement
implementation of the default Lat
using a BigDecimal value in
Decimal degrees (instead of DMS-encoded string) and relying upon the
XmlJavaTypeAdapter for DMS translation.
Modifier and Type | Field and Description |
---|---|
protected BigDecimal |
value
The value property in decimal degrees.
|
availability, cls, extReferences, idref, legacyReleasability, quality, recommendedValue, remarkRef
Constructor and Description |
---|
Lat()
Construct a new, empty Lat instance.
|
Lat(BigDecimal value)
Construct a new Lat instance with the given initial value.
|
Lat(Double value)
Construct a new Lat instance with the given initial value.
|
Lat(String value)
Construct a new Lat instance with the given initial value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Lat obj)
Comparison and sorting.
|
boolean |
equals(Object obj)
Equality is based upon the value.
|
BigDecimal |
getValue()
Get the value of the value property.
|
int |
hashCode()
Hash code is based upon the value.
|
boolean |
isSet()
Determine if the required fields in this SSRF data type instance are set.
|
boolean |
isSetValue()
Determine if the value property is configured.
|
void |
setValue(BigDecimal value)
Set the value of the value property.
|
String |
toString()
Get a string representation of this data wrapper value.
|
getAvailability, getCls, getExtReferences, getIdref, getLegacyReleasability, getQuality, getRecommendedValue, getRemarkRef, isSetAvailability, isSetCls, isSetExtReferences, isSetIdref, isSetLegacyReleasability, isSetQuality, isSetRecommendedValue, isSetRemarkRef, setAvailability, setCls, setIdref, setLegacyReleasability, setQuality, setRecommendedValue, unsetExtReferences, unsetRemarkRef, withAvailability, withCls, withExtReferences, withExtReferences, withIdref, withLegacyReleasability, withQuality, withRecommendedValue, withRemarkRef, withRemarkRef
protected BigDecimal value
public Lat()
public Lat(BigDecimal value)
value
- The initial value in decimal degrees.public Lat(Double value)
value
- The initial value in decimal degrees.public Lat(String value) throws Exception
Sets the geographical latitude (degrees, minutes, seconds and hemisphere N or S) of the source of the interference. Same remarks for seconds and leading zeros. Enter N or S immediately following the seconds. The format is: ddmmss.hhH (where ".hh" is optional and H = N or S).
[XSD ERR REGEX] This data item MUST comply to the regular expression: "(((((([0-8][0-9]))([0-5][0-9]){2})(.[0-9]{1,2})?)|900000)(N|S))|X"
value
- The initial value as aDMS encoded stringException
- if the value fails to parsepublic BigDecimal getValue()
public void setValue(BigDecimal value)
the
- value in decimal degrees.public boolean isSetValue()
public boolean isSet()
Note that this method only checks for the presence of required information; this method does not validate the information format.
public String toString()
public int hashCode()
public boolean equals(Object obj)
public int compareTo(Lat obj)
compareTo
in interface Comparable<Lat>
obj
- the other object to compareCopyright © 2016 OpenSSRF.org. All rights reserved.