Class CC_GeneralOperationParameter

java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<CC_GeneralOperationParameter,org.opengis.parameter.GeneralParameterDescriptor>
org.apache.sis.internal.jaxb.gco.PropertyType<CC_GeneralOperationParameter,org.opengis.parameter.GeneralParameterDescriptor>
org.apache.sis.internal.jaxb.referencing.CC_GeneralOperationParameter

public final class CC_GeneralOperationParameter extends PropertyType<CC_GeneralOperationParameter,org.opengis.parameter.GeneralParameterDescriptor>
JAXB adapter mapping implementing class to the GeoAPI interface. See package documentation for more information about JAXB and interface.

This class provides additional merge(…) methods for building a unique descriptor instance when the same descriptor is declared in more than one place in the GML document. Some examples of duplications are:

  • The descriptors listed under the <gml:group> element, which duplicate the descriptors listed under each <gml:parameterValue> element.
  • The descriptors declared in each parameter value of a SingleOperation, which duplicate the descriptors declared in the associated OperationMethod.
Since:
0.6
Version:
1.3
Author:
Martin Desruisseaux (Geomatys)
  • Field Details

    • DEFAULT_OCCURRENCE

      public static final short DEFAULT_OCCURRENCE
      The default value of minimumOccurs and maximumOccurs if the XML element is not provided.
      See Also:
  • Constructor Details

    • CC_GeneralOperationParameter

      public CC_GeneralOperationParameter()
      Empty constructor for JAXB only.
  • Method Details

    • getBoundType

      protected Class<org.opengis.parameter.GeneralParameterDescriptor> getBoundType()
      Returns the GeoAPI interface which is bound by this adapter. This method is indirectly invoked by the private constructor below, so it shall not depend on the state of this object.
      Specified by:
      getBoundType in class PropertyType<CC_GeneralOperationParameter,org.opengis.parameter.GeneralParameterDescriptor>
      Returns:
      GeneralParameterDescriptor.class
    • wrap

      protected CC_GeneralOperationParameter wrap(org.opengis.parameter.GeneralParameterDescriptor parameter)
      Invoked by PropertyType at marshalling time for wrapping the given value in a <gml:OperationParameter> or <gml:OperationParameterGroup> XML element.
      Specified by:
      wrap in class PropertyType<CC_GeneralOperationParameter,org.opengis.parameter.GeneralParameterDescriptor>
      Parameters:
      parameter - the element to marshal.
      Returns:
      a PropertyType wrapping the given the element.
    • getElement

      public AbstractParameterDescriptor getElement()
      Invoked by JAXB at marshalling time for getting the actual element to write inside the <gml:parameter> XML element. This is the value or a copy of the value given in argument to the wrap method.
      Returns:
      the element to be marshalled.
      See Also:
    • setElement

      public void setElement(AbstractParameterDescriptor parameter)
      Invoked by JAXB at unmarshalling time for storing the result temporarily.
      Parameters:
      parameter - the unmarshalled element.