public class Lon extends AMetadata<Lon> implements Comparable<Lon>
The geographical longitude (degrees, minutes, seconds, and hemisphere E or W) of the Point or center of the Ellipse. If the seconds are not known, use 00, except in the case of navigation aid systems, geostationary satellites, and microwave facilities where seconds are required. Use leading zeros as appropriate for degrees, minutes, or seconds. Degrees longitude require three digits. Seconds may have a decimal point followed by up to two decimals. enter E or W immediately following the seconds. The format is: dddmmss.hhH (where ".hh" is optional and H = E or W).
[XSD ERR REGEX] This data item MUST comply to the regular expression: "((((((0[0-9]{2})|(1[0-7][0-9])) ([0-5][0-9]){2})(.[0-9]{1,2})?)|1800000)(E|W))|X"
Developer note: This Lon
is an extension and replacement
implementation of the default Lon
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 |
---|
Lon()
Construct a new, empty Lon instance.
|
Lon(BigDecimal value)
Construct a new Lon instance with the given initial value.
|
Lon(Double value)
Construct a new Lon instance with the given initial value.
|
Lon(String value)
Construct a new Lon instance with the given initial value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Lon 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 Lon()
public Lon(BigDecimal value)
value
- The initial value in decimal degrees.public Lon(Double value)
value
- The initial value in decimal degrees.public Lon(String value) throws Exception
Sets the geographical longitude (degrees, minutes, seconds, and hemisphere E or W) of the source of the interference. If the seconds are not known, use 00. Use leading zeros as appropriate for degrees, minutes, or seconds. Degrees longitude require three digits. Seconds may have a decimal point followed by up to two decimals. Enter E or W immediately following the seconds. The format is: dddmmss.hhH (where ".hh" is optional and H = E or W).
[XSD ERR REGEX] This data item MUST comply to the regular expression: "((((((0[0-9]{2})|(1[0-7][0-9]))([0-5] [0-9]){2})(.[0-9]{1,2})?)|1800000)(E|W))|X"
value
- The initial value as a string encoded DMS value.Exception
- 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(Lon obj)
compareTo
in interface Comparable<Lon>
obj
- the other object to compareCopyright © 2016 OpenSSRF.org. All rights reserved.