Class MD_Scope
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.gco.PropertyType<MD_Scope,org.opengis.metadata.quality.Scope>
org.apache.sis.internal.jaxb.metadata.MD_Scope
- Direct Known Subclasses:
MD_Scope.Legacy,MD_Scope.Since2014
JAXB adapter in order to map implementing class with the GeoAPI interface.
See package documentation for more information about JAXB and interface.
- Since:
- 0.3
- Version:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOn unmarshalling, creates an instance of the deprecatedDefaultScopesubclass.static final classWraps the value only if marshalling an element from the ISO 19115:2014 metadata model. -
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
metadata -
Constructor Summary
ConstructorsModifierConstructorDescriptionMD_Scope()Empty constructor for JAXB only.privateMD_Scope(org.opengis.metadata.quality.Scope value) Constructor for thewrap(org.opengis.metadata.quality.Scope)method only. -
Method Summary
Modifier and TypeMethodDescriptionprotected final Class<org.opengis.metadata.quality.Scope>Returns the GeoAPI interface which is bound by this adapter.final DefaultScopeInvoked by JAXB at marshalling time for getting the actual metadata to write inside the<mcc:MD_Scope>XML element.final voidsetElement(DefaultScope value) Invoked by JAXB at unmarshalling time for storing the result temporarily.protected MD_Scopewrap(org.opengis.metadata.quality.Scope value) Invoked byPropertyTypeat marshalling time for wrapping the given metadata value in a<mcc:MD_Scope>XML element.Methods inherited from class org.apache.sis.internal.jaxb.gco.PropertyType
accept2014, getActuate, getArcRole, getHRef, getNilReason, getRole, getShow, getTitle, getUUIDREF, incomplete, marshal, setActuate, setArcRole, setHRef, setNilReason, setRole, setShow, setTitle, setUUIDREF, unmarshal
-
Constructor Details
-
MD_Scope
public MD_Scope()Empty constructor for JAXB only. -
MD_Scope
private MD_Scope(org.opengis.metadata.quality.Scope value) Constructor for thewrap(org.opengis.metadata.quality.Scope)method only.
-
-
Method Details
-
getBoundType
Returns the GeoAPI interface which is bound by this adapter. This method is indirectly invoked by the private constructor below, so it shall not depend on the state of this object.- Specified by:
getBoundTypein classPropertyType<MD_Scope,org.opengis.metadata.quality.Scope> - Returns:
Scope.class
-
wrap
Invoked byPropertyTypeat marshalling time for wrapping the given metadata value in a<mcc:MD_Scope>XML element.- Specified by:
wrapin classPropertyType<MD_Scope,org.opengis.metadata.quality.Scope> - Parameters:
value- the metadata element to marshal.- Returns:
- a
PropertyTypewrapping the given the metadata element.
-
getElement
Invoked by JAXB at marshalling time for getting the actual metadata to write inside the<mcc:MD_Scope>XML element. This is the value or a copy of the value given in argument to thewrapmethod.- Returns:
- the metadata to be marshalled.
-
setElement
Invoked by JAXB at unmarshalling time for storing the result temporarily.- Parameters:
value- the unmarshalled metadata.
-