Class MI_TriggerCode

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<ValueType,BoundType>
org.apache.sis.internal.jaxb.cat.CodeListAdapter<MI_TriggerCode,org.opengis.metadata.acquisition.Trigger>
org.apache.sis.internal.jaxb.code.MI_TriggerCode

public final class MI_TriggerCode extends CodeListAdapter<MI_TriggerCode,org.opengis.metadata.acquisition.Trigger>
JAXB adapter for Trigger 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
  • Constructor Details

    • MI_TriggerCode

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

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

    • wrap

      protected MI_TriggerCode wrap(CodeListUID value)
      Wraps the given value. Most implementations will be like below: However, is some cases, the value argument may be inspected. For example, MD_RestrictionCode replaces "licence" by "license" for ISO 19115:2003 compatibility.
      Specified by:
      wrap in class CodeListAdapter<MI_TriggerCode,org.opengis.metadata.acquisition.Trigger>
      Parameters:
      value - the value of CodeList, to be marshalled.
      Returns:
      the wrapper for the code list value.
    • getCodeListClass

      protected Class<org.opengis.metadata.acquisition.Trigger> getCodeListClass()
      Returns the class of code list wrapped by this adapter.
      Specified by:
      getCodeListClass in class CodeListAdapter<MI_TriggerCode,org.opengis.metadata.acquisition.Trigger>
      Returns:
      the code list class.
    • getElement

      public CodeListUID getElement()
      Invoked by JAXB on marshalling.
      Specified by:
      getElement in class CodeListAdapter<MI_TriggerCode,org.opengis.metadata.acquisition.Trigger>
      Returns:
      the value to be marshalled.
    • setElement

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