public class Operation extends Object
Constructor and Description |
---|
Operation(String name,
DCP[] dcps) |
Operation(String name,
Parameter[] parameters,
String[] constraints,
DCP[] dcps) |
Operation(String name,
String httpGetHref,
String httpPostHref)
convenience constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter param) |
String[] |
getConstraints() |
DCP[] |
getDcps() |
String |
getName() |
Parameter |
getParameter(String serviceSidedName) |
DatasetParameter |
getParameter(String serviceSidedName,
String datasetID) |
List<Parameter> |
getParameters() |
Map<String,Parameter> |
getParametersAsMap()
This returns a Map, which contains the parameterNames (= serviceSidedNames) as Keys and the
Parameters itself as values.
|
protected void |
setConstraints(String[] constraints) |
protected void |
setDcps(DCP[] dcps) |
protected void |
setName(String name) |
protected void |
setParameters(Parameter[] parameters) |
String |
toString() |
String |
toXML() |
public Operation(String name, String httpGetHref, String httpPostHref)
null
.name
- name of the operationhttpGetHref
- the URL to be used for HTTP GEThttpPostHref
- the URL to be used for HTTP POSTpublic String toXML()
public String[] getConstraints()
protected void setConstraints(String[] constraints)
public DCP[] getDcps()
protected void setDcps(DCP[] dcps)
public String getName()
protected void setName(String name) throws IllegalArgumentException
name
- The name to set.IllegalArgumentException
- if name is empty.protected void setParameters(Parameter[] parameters)
parameters
- The parameters to set.public Map<String,Parameter> getParametersAsMap()
public Parameter getParameter(String serviceSidedName)
public DatasetParameter getParameter(String serviceSidedName, String datasetID)
serviceSidedName
- the service side parameternamedatasetID
- the dataset idpublic void addParameter(Parameter param)
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.