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.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
CONSTRAINT_PROPERTY
Data property that maps to the
Constraint element. |
static TLcdDataProperty |
LINK_INFO_PROPERTY
Data linkInfo property.
|
static TLcdDataProperty |
LINKED_OBJECT_PROPERTY
Data linkedObject property.
|
Constructor and Description |
---|
TLcdOWSRequestMethod()
Creates a new
TLcdOWSRequestMethod . |
TLcdOWSRequestMethod(String aHref)
Creates a new
TLcdOWSRequestMethod for a connection point URL. |
TLcdOWSRequestMethod(TLcdDataType aType)
Creates a new
TLcdOWSRequestMethod instance with the given data type. |
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(TLcdOWSDomain aConstraint)
Adds a constraint to this request method.
|
List<TLcdOWSDomain> |
getConstraint()
Returns the value of the property that maps to the
Constraint element. |
TLcdOWSDomain |
getConstraint(int aIndex)
Returns the constraint at the given index.
|
int |
getConstraintCount()
Returns the number of constraints.
|
Object |
getLinkedObject()
Returns the value of the linkedObject property.
|
Object |
getLinkInfo()
Returns the value of the linkInfo property.
|
void |
removeConstraint(int aIndex)
Removes the constraint at the given position.
|
void |
setLinkedObject(Object aValue)
Sets the value of the linkedObject property.
|
void |
setLinkInfo(Object aValue)
Sets the value of the linkInfo property.
|
getActuate, getArcrole, getHref, getLinkage, getRole, getShow, getTitle, getType, setActuate, setArcrole, setHref, setRole, setShow, setTitle
public static final TLcdDataProperty CONSTRAINT_PROPERTY
Constraint
element.
The possible values for this property are instances of List<TLcdOWSDomain>
.public static final TLcdDataProperty LINK_INFO_PROPERTY
Object
.public static final TLcdDataProperty LINKED_OBJECT_PROPERTY
Object
.public TLcdOWSRequestMethod()
TLcdOWSRequestMethod
.public TLcdOWSRequestMethod(TLcdDataType aType)
TLcdOWSRequestMethod
instance with the given data type.aType
- The data type.public TLcdOWSRequestMethod(String aHref)
TLcdOWSRequestMethod
for a connection point URL.aHref
- a connection point URLpublic void addConstraint(TLcdOWSDomain aConstraint)
aConstraint
- the constraint to be added.public int getConstraintCount()
public void removeConstraint(int aIndex)
aIndex
- the index of the constraint to be removedpublic TLcdOWSDomain getConstraint(int aIndex)
aIndex
- the index of the constraint to be retrievedpublic List<TLcdOWSDomain> getConstraint()
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.
CONSTRAINT_PROPERTY
property.public Object getLinkInfo()
LINK_INFO_PROPERTY
property.public void setLinkInfo(Object aValue)
aValue
- the value to set for the LINK_INFO_PROPERTY
property.public Object getLinkedObject()
LINKED_OBJECT_PROPERTY
property.public void setLinkedObject(Object aValue)
aValue
- the value to set for the LINKED_OBJECT_PROPERTY
property.