org.n52.oxf.ows.capabilities
Class Operation
java.lang.Object
org.n52.oxf.ows.capabilities.Operation
public class Operation
- extends Object
This class holds the values to invoke a service operation. One Operation will be generated for each
operation of a OWS (ie. GetMap)
- Author:
- Theodor Foerster, Arne Broering
Operation
public Operation(String name,
Parameter[] parameters,
String[] constraints,
DCP[] dcps)
Operation
public Operation(String name,
DCP[] dcps)
Operation
public Operation(String name,
String httpGetHref,
String httpPostHref)
- convenience constructor. Creates an Operation with the specified name and sets one DCP with the
specified httpGetHref and httpPostHref. The constraints and parameters attributes will stay
null
.
- Parameters:
name
- dcps
-
toXML
public String toXML()
- Returns:
- a XML representation of this OperationsMetadata-section.
toString
public String toString()
- Overrides:
toString
in class Object
getConstraints
public String[] getConstraints()
- Returns:
- Returns the constraints.
setConstraints
protected void setConstraints(String[] constraints)
- Parameters:
constraints
- The constraints to set.
getDcps
public DCP[] getDcps()
- Returns:
- Returns the dcps.
setDcps
protected void setDcps(DCP[] dcps)
- Parameters:
dcps
- The dcps to set.
getName
public String getName()
- Returns:
- Returns the name.
setName
protected void setName(String name)
throws IllegalArgumentException
- Parameters:
name
- The name to set.
- Throws:
IllegalArgumentException
- if name is empty.
getParameters
public List<Parameter> getParameters()
- Returns:
- Returns the parameters.
setParameters
protected void setParameters(Parameter[] parameters)
- Parameters:
parameters
- The parameters to set.
getParametersAsMap
public Map<String,Parameter> getParametersAsMap()
- This returns a Map, which contains the parameterNames (= serviceSidedNames) as Keys and the
Parameters itself as values.
- Returns:
getParameter
public Parameter getParameter(String serviceSidedName)
- Returns:
- the parameter with the specified serviceSidedName (ignore case!).
getParameter
public DatasetParameter getParameter(String serviceSidedName,
String datasetID)
- Parameters:
serviceSidedName
- datasetID
-
- Returns:
- the DatasetParameter with the specified serviceSidedName (ignore case!) and the specified
datasetID.
addParameter
public void addParameter(Parameter param)
- Parameters:
param
-
Copyright © 2012-2013 52north.org. All Rights Reserved.