Package org.apache.sis.internal.jaxb.gco
Class GO_Record
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<GO_Record,org.opengis.util.Record>
org.apache.sis.internal.jaxb.gco.PropertyType<GO_Record,org.opengis.util.Record>
org.apache.sis.internal.jaxb.gco.GO_Record
- Direct Known Subclasses:
GO_Record.Since2014
JAXB wrapper in order to map implementing class with the GeoAPI interface.
See package documentation for more information about JAXB and interface.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wraps the value only if marshalling ISO 19115-3 element. -
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class
<org.opengis.util.Record> Returns the GeoAPI interface which is bound by this adapter.final DefaultRecord
Returns theDefaultRecord
generated from the metadata value.final void
setElement
(DefaultRecord metadata) Sets the value for theDefaultRecord
.protected GO_Record
wrap
(org.opengis.util.Record value) Returns a wrapper for the givenRecord
element.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_Record
GO_Record()Empty constructor for JAXB only. -
GO_Record
private GO_Record(org.opengis.util.Record metadata) Wraps aRecord
value with agco:Record
element at marshalling-time.- Parameters:
metadata
- the metadata value to marshal.
-
-
Method Details
-
getBoundType
Returns the GeoAPI interface which is bound by this adapter.- Specified by:
getBoundType
in classPropertyType<GO_Record,
org.opengis.util.Record> - Returns:
Record.class
-
wrap
Returns a wrapper for the givenRecord
element.- Specified by:
wrap
in classPropertyType<GO_Record,
org.opengis.util.Record> - Parameters:
value
- the value to marshal.- Returns:
- the wrapper around the given metadata value.
-
getElement
Returns theDefaultRecord
generated from the metadata value. This method is systematically called at marshalling-time by JAXB.- Returns:
- the metadata to be marshalled.
-
setElement
Sets the value for theDefaultRecord
. This method is systematically called at unmarshalling-time by JAXB.- Parameters:
metadata
- the unmarshalled metadata.
-