Class DCPList


public final class DCPList extends UnsupportedCodeListAdapter<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
  • Constructor Details

    • DCPList

      public DCPList()
      Empty constructor for JAXB only.
    • DCPList

      private DCPList(CodeListUID value)
      Creates a new adapter for the given value.
  • Method Details

    • wrap

      protected DCPList wrap(CodeListUID value)
      Wraps the code into an adapter. Most implementations will be like below:
      Specified by:
      wrap in class UnsupportedCodeListAdapter<DCPList>
      Parameters:
      value - the value of CodeList to be marshalled.
      Returns:
      the wrapper for the code list value.
    • getCodeListName

      protected String getCodeListName()
      Returns the name of the code list class.
      Specified by:
      getCodeListName in class UnsupportedCodeListAdapter<DCPList>
      Returns:
      the code list class.
    • toIdentifier

      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.
      Overrides:
      toIdentifier in class UnsupportedCodeListAdapter<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 the codeListValue attribute, or true for the XML value.
      Returns:
      The identifier (e.g. "WebServices" or "Web services").
    • getElement

      public CodeListUID getElement()
      Invoked by JAXB on marshalling.
      Specified by:
      getElement in class UnsupportedCodeListAdapter<DCPList>
      Returns:
      the value to be marshalled.
    • setElement

      public void setElement(CodeListUID value)
      Invoked by JAXB on unmarshalling.
      Parameters:
      value - the unmarshalled value.