Class DCPList
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<DCPList,org.opengis.util.CodeList<?>>
org.apache.sis.internal.geoapi.evolution.UnsupportedCodeListAdapter<DCPList>
org.apache.sis.internal.jaxb.code.DCPList
JAXB adapter for
DistributedComputingPlatform
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.5
- Version:
- 1.0
-
Field Summary
Fields inherited from class org.apache.sis.internal.geoapi.evolution.UnsupportedCodeListAdapter
identifier
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDCPList()
Empty constructor for JAXB only.private
DCPList
(CodeListUID value) Creates a new adapter for the given value. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the name of the code list class.Invoked by JAXB on marshalling.void
setElement
(CodeListUID value) Invoked by JAXB on unmarshalling.protected String
toIdentifier
(String name, StringBuilder buffer, boolean isValue) Converts the given Java constant name to something hopefully close to the UML identifier, or close to the textual value to put in the XML.protected DCPList
wrap
(CodeListUID value) Wraps the code into an adapter.Methods inherited from class org.apache.sis.internal.geoapi.evolution.UnsupportedCodeListAdapter
marshal, unmarshal
-
Constructor Details
-
DCPList
public DCPList()Empty constructor for JAXB only. -
DCPList
Creates a new adapter for the given value.
-
-
Method Details
-
wrap
Wraps the code into an adapter. Most implementations will be like below:- Specified by:
wrap
in classUnsupportedCodeListAdapter<DCPList>
- Parameters:
value
- the value ofCodeList
to be marshalled.- Returns:
- the wrapper for the code list value.
-
getCodeListName
Returns the name of the code list class.- Specified by:
getCodeListName
in classUnsupportedCodeListAdapter<DCPList>
- Returns:
- the code list class.
-
toIdentifier
Converts the given Java constant name to something hopefully close to the UML identifier, or close to the textual value to put in the XML.- Overrides:
toIdentifier
in classUnsupportedCodeListAdapter<DCPList>
- Parameters:
name
- The Java constant name (e.g.WEB_SERVICES
).buffer
- An initially empty buffer to use for creating the identifier.isValue
-false
for thecodeListValue
attribute, ortrue
for the XML value.- Returns:
- The identifier (e.g.
"WebServices"
or"Web services"
).
-
getElement
Invoked by JAXB on marshalling.- Specified by:
getElement
in classUnsupportedCodeListAdapter<DCPList>
- Returns:
- the value to be marshalled.
-
setElement
Invoked by JAXB on unmarshalling.- Parameters:
value
- the unmarshalled value.
-