Class DCPList
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,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.privateDCPList(CodeListUID value) Creates a new adapter for the given value. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the name of the code list class.Invoked by JAXB on marshalling.voidsetElement(CodeListUID value) Invoked by JAXB on unmarshalling.protected StringtoIdentifier(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 DCPListwrap(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:
wrapin classUnsupportedCodeListAdapter<DCPList>- Parameters:
value- the value ofCodeListto be marshalled.- Returns:
- the wrapper for the code list value.
-
getCodeListName
Returns the name of the code list class.- Specified by:
getCodeListNamein 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:
toIdentifierin classUnsupportedCodeListAdapter<DCPList>- Parameters:
name- The Java constant name (e.g.WEB_SERVICES).buffer- An initially empty buffer to use for creating the identifier.isValue-falsefor thecodeListValueattribute, ortruefor the XML value.- Returns:
- The identifier (e.g.
"WebServices"or"Web services").
-
getElement
Invoked by JAXB on marshalling.- Specified by:
getElementin classUnsupportedCodeListAdapter<DCPList>- Returns:
- the value to be marshalled.
-
setElement
Invoked by JAXB on unmarshalling.- Parameters:
value- the unmarshalled value.
-