Class MD_PixelOrientationCode
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.cat.CodeListAdapter<MD_PixelOrientationCode,org.opengis.metadata.spatial.PixelOrientation>
org.apache.sis.internal.jaxb.code.MD_PixelOrientationCode
public final class MD_PixelOrientationCode
extends CodeListAdapter<MD_PixelOrientationCode,org.opengis.metadata.spatial.PixelOrientation>
JAXB adapter for
PixelOrientation
in order to wrap the value in an XML element as specified by ISO 19115-3 standard.
See package documentation for more information about the handling of CodeList
in ISO 19115-3.- Since:
- 0.3
- Version:
- 1.0
-
Field Summary
Fields inherited from class org.apache.sis.internal.jaxb.cat.CodeListAdapter
identifier
-
Constructor Summary
ConstructorsModifierConstructorDescriptionEmpty constructor for JAXB only.private
Creates a new adapter for the given proxy. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<org.opengis.metadata.spatial.PixelOrientation>
Returns the class of code list wrapped by this adapter.Invoked by JAXB on marshalling.protected boolean
isEnum()
Returnstrue
since this code list is actually an enum.void
setElement
(CodeListUID value) Invoked by JAXB on unmarshalling.protected MD_PixelOrientationCode
wrap
(CodeListUID value) Wraps the given value.Methods inherited from class org.apache.sis.internal.jaxb.cat.CodeListAdapter
accept2014, marshal, unmarshal
-
Constructor Details
-
MD_PixelOrientationCode
public MD_PixelOrientationCode()Empty constructor for JAXB only. -
MD_PixelOrientationCode
Creates a new adapter for the given proxy.
-
-
Method Details
-
wrap
Wraps the given value. Most implementations will be like below: However, is some cases, thevalue
argument may be inspected. For example,MD_RestrictionCode
replaces"licence"
by"license"
for ISO 19115:2003 compatibility.- Specified by:
wrap
in classCodeListAdapter<MD_PixelOrientationCode,
org.opengis.metadata.spatial.PixelOrientation> - Parameters:
value
- the value ofCodeList
, to be marshalled.- Returns:
- the wrapper for the code list value.
-
getCodeListClass
Returns the class of code list wrapped by this adapter.- Specified by:
getCodeListClass
in classCodeListAdapter<MD_PixelOrientationCode,
org.opengis.metadata.spatial.PixelOrientation> - Returns:
- the code list class.
-
isEnum
protected boolean isEnum()Returnstrue
since this code list is actually an enum.- Overrides:
isEnum
in classCodeListAdapter<MD_PixelOrientationCode,
org.opengis.metadata.spatial.PixelOrientation> - Returns:
true
if this code list is actually an enum.- See Also:
-
getElement
Invoked by JAXB on marshalling.- Specified by:
getElement
in classCodeListAdapter<MD_PixelOrientationCode,
org.opengis.metadata.spatial.PixelOrientation> - Returns:
- The value to be marshalled.
-
setElement
Invoked by JAXB on unmarshalling.- Parameters:
value
- The unmarshalled value.
-