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