Package org.apache.sis.internal.jaxb.gco
Class GO_MultiplicityRange
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_MultiplicityRange,NumberRange<Integer>>
org.apache.sis.internal.jaxb.gco.PropertyType<GO_MultiplicityRange,NumberRange<Integer>>
org.apache.sis.internal.jaxb.gco.GO_MultiplicityRange
Adapter for a component of a multiplicity, consisting of an non-negative lower bound,
and a potentially infinite upper bound.
- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
ConstructorsModifierConstructorDescription(package private)
Empty constructor used only by JAXB.private
GO_MultiplicityRange
(NumberRange<Integer> value) Constructs a wrapper for the given value. -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class
<NumberRange<Integer>> Returns the Java type which is bound by this adapter.private MultiplicityRange
Invoked by JAXB at marshalling time for getting the actual value to write.private void
setElement
(MultiplicityRange metadata) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected GO_MultiplicityRange
wrap
(NumberRange<Integer> value) Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements about primitive types.Methods inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
accept2014, getActuate, getArcRole, getHRef, getNilReason, getRole, getShow, getTitle, getUUIDREF, incomplete, marshal, resolve, setActuate, setArcRole, setHRef, setNilReason, setRole, setShow, setTitle, setUUIDREF, unmarshal
-
Constructor Details
-
GO_MultiplicityRange
GO_MultiplicityRange()Empty constructor used only by JAXB. -
GO_MultiplicityRange
Constructs a wrapper for the given value.- Parameters:
value
- the value.
-
-
Method Details
-
getBoundType
Returns the Java type which is bound by this adapter.- Specified by:
getBoundType
in classPropertyType<GO_MultiplicityRange,
NumberRange<Integer>> - Returns:
MultiplicityRange.class
-
wrap
Allows JAXB to change the result of the marshalling process, according to the ISO 19115-3 standard and its requirements about primitive types.- Specified by:
wrap
in classPropertyType<GO_MultiplicityRange,
NumberRange<Integer>> - Parameters:
value
- the integer range we want to wrap in an element representing its type.- Returns:
- a wrapper for the integer range, that is to say an integer value wrapped
by
<gco:MultiplicityRange>
element.
-
getElement
Invoked by JAXB at marshalling time for getting the actual value to write.- Returns:
- the value to be marshalled.
-
setElement
Invoked by JAXB at unmarshalling time for storing the result temporarily.- Parameters:
metadata
- the unmarshalled value.
-