T - the actual parameter type.public abstract class ParameterService<T extends ParameterOutput> extends Object implements RawDataInfo
IoParameters.| Constructor and Description |
|---|
ParameterService() |
| Modifier and Type | Method and Description |
|---|---|
protected OutputCollection<T> |
createOutputCollection() |
protected OutputCollection<T> |
createOutputCollection(List<T> results) |
protected OutputCollection<T> |
createOutputCollection(T result) |
abstract boolean |
exists(String id,
IoParameters parameters)
If a resource exists or not.
|
abstract OutputCollection<T> |
getCondensedParameters(IoParameters query) |
abstract OutputCollection<T> |
getExpandedParameters(IoParameters query) |
abstract T |
getParameter(String item,
IoParameters query)
Gets the requested item with respect to the given query parameters.
|
abstract OutputCollection<T> |
getParameters(String[] items,
IoParameters query)
Gets the requested items with respect to the given query parameters.
|
RawDataService |
getRawDataService() |
void |
setRawDataService(RawDataService rawDataService) |
boolean |
supportsRawData()
Check if raw data output is supported
|
protected OutputCollection<T> createOutputCollection(List<T> results)
protected OutputCollection<T> createOutputCollection(T result)
protected OutputCollection<T> createOutputCollection()
public abstract OutputCollection<T> getExpandedParameters(IoParameters query)
query - query parameters to control the output.public abstract OutputCollection<T> getCondensedParameters(IoParameters query)
query - query parameters to control the output.public abstract OutputCollection<T> getParameters(String[] items, IoParameters query)
items - a subset of item ids which are of interest.query - query parameters to control the output.public abstract T getParameter(String item, IoParameters query)
item - the item id of interest.query - query parameters to control the output.public abstract boolean exists(String id, IoParameters parameters)
id - the id of the resource.parameters - the query passed along.true if the resource exists, false otherwise.public boolean supportsRawData()
supportsRawData in interface RawDataInfotrue, if raw data output is supportedpublic RawDataService getRawDataService()
getRawDataService in interface RawDataInfopublic void setRawDataService(RawDataService rawDataService)
Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.