Package org.apache.sis.internal.jaxb.gco
Class GO_Distance
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_Distance,Double>
org.apache.sis.internal.jaxb.gco.GO_Distance
The ISO 19103
Distance
with a unit of measure
defined, using the
gco
namespace linked to the http://www.isotc211.org/2005/gco
URL.
This class is identical to GO_Measure
except for the name of the element,
which is "Distance"
.
- Since:
- 0.3
- Version:
- 0.8
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor used only by JAXB.private
GO_Distance
(Double value) Constructs an adapter for the given value before marshalling. -
Method Summary
Modifier and TypeMethodDescriptionAllows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements aboutmeasures
.unmarshal
(GO_Distance value) Allows JAXB to generate a Double object using the value found in the adapter.
-
Field Details
-
distance
A proxy representation of the<gco:Distance>
element.
-
-
Constructor Details
-
GO_Distance
public GO_Distance()Empty constructor used only by JAXB. -
GO_Distance
Constructs an adapter for the given value before marshalling.- Parameters:
value
- the value.
-
-
Method Details
-
unmarshal
Allows JAXB to generate a Double object using the value found in the adapter.- Specified by:
unmarshal
in classXmlAdapter<GO_Distance,
Double> - Parameters:
value
- the value wrapped in an adapter.- Returns:
- the double value extracted from the adapter.
-
marshal
Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements aboutmeasures
.- Specified by:
marshal
in classXmlAdapter<GO_Distance,
Double> - Parameters:
value
- the double value we want to integrate into a<gco:Distance>
element.- Returns:
- an adaptation of the double value, that is to say a double value surrounded
by
<gco:Distance>
element, with anuom
attribute.
-