Class TLcdOWSRequestMethod
- All Implemented Interfaces:
ILcdDataObject,ILcdXMLSimpleLink,ILcdCloneable,ILcdDeepCloneable,Cloneable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theConstraintelement.static final TLcdDataPropertyData linkInfo property.static final TLcdDataPropertyData linkedObject property. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdOWSRequestMethod.TLcdOWSRequestMethod(TLcdDataType aType) Creates a newTLcdOWSRequestMethodinstance with the given data type.TLcdOWSRequestMethod(String aHref) Creates a newTLcdOWSRequestMethodfor a connection point URL. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstraint(TLcdOWSDomain aConstraint) Adds a constraint to this request method.Returns the value of the property that maps to theConstraintelement.getConstraint(int aIndex) Returns the constraint at the given index.intReturns the number of constraints.Returns the value of the linkedObject property.Returns the value of the linkInfo property.voidremoveConstraint(int aIndex) Removes the constraint at the given position.voidsetLinkedObject(Object aValue) Sets the value of the linkedObject property.voidsetLinkInfo(Object aValue) Sets the value of the linkInfo property.Methods inherited from class com.luciad.ogc.ows.model.TLcdOWSOnlineResource
getActuate, getArcrole, getHref, getLinkage, getRole, getShow, getTitle, getType, setActuate, setArcrole, setHref, setRole, setShow, setTitle
-
Field Details
-
CONSTRAINT_PROPERTY
Data property that maps to theConstraintelement. The possible values for this property are instances ofList<TLcdOWSDomain>. -
LINK_INFO_PROPERTY
Data linkInfo property. The possible values for this property are instances ofObject. -
LINKED_OBJECT_PROPERTY
Data linkedObject property. The possible values for this property are instances ofObject.
-
-
Constructor Details
-
TLcdOWSRequestMethod
public TLcdOWSRequestMethod()Creates a newTLcdOWSRequestMethod. -
TLcdOWSRequestMethod
Creates a newTLcdOWSRequestMethodinstance with the given data type.- Parameters:
aType- The data type.
-
TLcdOWSRequestMethod
Creates a newTLcdOWSRequestMethodfor a connection point URL.- Parameters:
aHref- a connection point URL
-
-
Method Details
-
addConstraint
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
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
Returns the value of the property that maps to theConstraintelement.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_PROPERTYproperty.
-
getLinkInfo
Returns the value of the linkInfo property.- Returns:
- the value of the
LINK_INFO_PROPERTYproperty.
-
setLinkInfo
Sets the value of the linkInfo property.- Parameters:
aValue- the value to set for theLINK_INFO_PROPERTYproperty.
-
getLinkedObject
Returns the value of the linkedObject property.- Returns:
- the value of the
LINKED_OBJECT_PROPERTYproperty.
-
setLinkedObject
Sets the value of the linkedObject property.- Parameters:
aValue- the value to set for theLINKED_OBJECT_PROPERTYproperty.
-