public class XmlAdapterLON extends AXmlAdapterNumber
Constructor and Description |
---|
XmlAdapterLON()
Construct a new adapter instance.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getLonHemisphere(Number longitude)
Get the longitude hemisphere from a latitude in decimal degrees.
|
String |
marshal(Number v)
Convert a value type to a bound type.
|
Number |
unmarshal(String v)
Convert a bound type to a value type.
|
convert, getMaxInclusive, getMinInclusive
public XmlAdapterLON()
Latitude ranges from -180 to +180 degrees.
Allow 9 decimal places; centimeter precision.
public Number unmarshal(String v) throws Exception
This is called when converting an object to XML.
unmarshal
in class AXmlAdapterNumber
v
- The value to be convereted. Can be null.Exception
- if there's an error during the conversion. The caller is
responsible for reporting the error to the user through
ValidationEventHandler.public String marshal(Number v) throws Exception
This is called with converting XML to an object.
marshal
in class AXmlAdapterNumber
v
- The value to be converted. Can be null.Exception
- if there's an error during the conversion. The caller is
responsible for reporting the error to the user through
ValidationEventHandler.Copyright © 2016 OpenSSRF.org. All rights reserved.