Class MI_PriorityCode
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.cat.CodeListAdapter<MI_PriorityCode,org.opengis.metadata.acquisition.Priority>
org.apache.sis.internal.jaxb.code.MI_PriorityCode
public final class MI_PriorityCode
extends CodeListAdapter<MI_PriorityCode,org.opengis.metadata.acquisition.Priority>
JAXB adapter for
Priority
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
MI_PriorityCode
(CodeListUID value) Creates a new adapter for the given value. -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<org.opengis.metadata.acquisition.Priority>
Returns the class of code list wrapped by this adapter.Invoked by JAXB on marshalling.void
setElement
(CodeListUID value) Invoked by JAXB on unmarshalling.protected MI_PriorityCode
wrap
(CodeListUID value) Wraps the given value.Methods inherited from class org.apache.sis.internal.jaxb.cat.CodeListAdapter
accept2014, isEnum, marshal, unmarshal
-
Constructor Details
-
MI_PriorityCode
public MI_PriorityCode()Empty constructor for JAXB only. -
MI_PriorityCode
Creates a new adapter for the given value.
-
-
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<MI_PriorityCode,
org.opengis.metadata.acquisition.Priority> - 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<MI_PriorityCode,
org.opengis.metadata.acquisition.Priority> - Returns:
- the code list class.
-
getElement
Invoked by JAXB on marshalling.- Specified by:
getElement
in classCodeListAdapter<MI_PriorityCode,
org.opengis.metadata.acquisition.Priority> - Returns:
- the value to be marshalled.
-
setElement
Invoked by JAXB on unmarshalling.- Parameters:
value
- the unmarshalled value.
-