Class TLcdOWSRequestMethod

All Implemented Interfaces:
ILcdDataObject, ILcdXMLSimpleLink, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdOWSRequestMethod extends TLcdOWSOnlineResource

This class represents a HTTP request method for an operation, specifying a connection point URL and an optional list of constraints.

In the OnlineResourceType, the xlink:href attribute in the xlink:simpleLink attribute group shall be used to contain this URL. The other attributes in the xlink:simpleLink attribute group should not be used.

  • Field Details

    • CONSTRAINT_PROPERTY

      public static final TLcdDataProperty CONSTRAINT_PROPERTY
      Data property that maps to the Constraint element. The possible values for this property are instances of List<TLcdOWSDomain>.
    • LINKED_OBJECT_PROPERTY

      public static final TLcdDataProperty LINKED_OBJECT_PROPERTY
      Data linkedObject property. The possible values for this property are instances of Object.
  • Constructor Details

    • TLcdOWSRequestMethod

      public TLcdOWSRequestMethod()
      Creates a new TLcdOWSRequestMethod.
    • TLcdOWSRequestMethod

      public TLcdOWSRequestMethod(TLcdDataType aType)
      Creates a new TLcdOWSRequestMethod instance with the given data type.
      Parameters:
      aType - The data type.
    • TLcdOWSRequestMethod

      public TLcdOWSRequestMethod(String aHref)
      Creates a new TLcdOWSRequestMethod for a connection point URL.
      Parameters:
      aHref - a connection point URL
  • Method Details

    • addConstraint

      public void addConstraint(TLcdOWSDomain aConstraint)
      Adds a constraint to this request method.

      The constraint list is an optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this request method.

      Parameters:
      aConstraint - the constraint to be added.
    • getConstraintCount

      public int getConstraintCount()
      Returns the number of constraints.
      Returns:
      the number of constraints.
    • removeConstraint

      public void removeConstraint(int aIndex)
      Removes the constraint at the given position.
      Parameters:
      aIndex - the index of the constraint to be removed
    • getConstraint

      public TLcdOWSDomain getConstraint(int aIndex)
      Returns the constraint at the given index.

      The constraint list is an optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this request method.

      Parameters:
      aIndex - the index of the constraint to be retrieved
      Returns:
      the constraint at the given index.
    • getConstraint

      public List<TLcdOWSDomain> getConstraint()
      Returns the value of the property that maps to the Constraint element.

      Optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this operation. If one of these Constraint elements has the same "name" attribute as a Constraint element in the OperationsMetadata or Operation element, this Constraint element shall override the other one for this operation. The list of required and optional constraints for this request method for this operation shall be specified in the Implementation Specification for this service.

      Returns:
      the value of the CONSTRAINT_PROPERTY property.
    • getLinkInfo

      public Object getLinkInfo()
      Returns the value of the linkInfo property.
      Returns:
      the value of the LINK_INFO_PROPERTY property.
    • setLinkInfo

      public void setLinkInfo(Object aValue)
      Sets the value of the linkInfo property.
      Parameters:
      aValue - the value to set for the LINK_INFO_PROPERTY property.
    • getLinkedObject

      public Object getLinkedObject()
      Returns the value of the linkedObject property.
      Returns:
      the value of the LINKED_OBJECT_PROPERTY property.
    • setLinkedObject

      public void setLinkedObject(Object aValue)
      Sets the value of the linkedObject property.
      Parameters:
      aValue - the value to set for the LINKED_OBJECT_PROPERTY property.