public class ApiTemplate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ApiTemplate.OutputVariable
Variable in the output of the API.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ApiTemplate(Map<String,String> fixedParams,
Set<String> inputVars,
Map<String,String> defaults,
Map<String,String> outputVars,
String items)
Hidden ctor.
|
| Modifier and Type | Method and Description |
|---|---|
static ApiTemplate |
fromJSON(com.fasterxml.jackson.databind.JsonNode json)
Create API template from JSON configuration.
|
Map<String,String> |
getFixedParams()
Get call fixed parameters.
|
String |
getInputDefault(String name)
Find default for this parameter.
|
Map<String,com.bigdata.bop.IVariableOrConstant> |
getInputVars(com.bigdata.rdf.sparql.ast.eval.ServiceParams serviceParams)
Create list of bindings from input params to specific variables or constants.
|
String |
getItemsPath()
Get items XPath.
|
List<ApiTemplate.OutputVariable> |
getOutputVars(com.bigdata.rdf.sparql.ast.service.ServiceNode serviceNode)
Create map of output variables from template and service params.
|
boolean |
isRequiredParameter(String name)
Check if parameter is required.
|
public static ApiTemplate fromJSON(com.fasterxml.jackson.databind.JsonNode json)
public String getItemsPath()
public boolean isRequiredParameter(String name)
public String getInputDefault(String name)
public Map<String,com.bigdata.bop.IVariableOrConstant> getInputVars(com.bigdata.rdf.sparql.ast.eval.ServiceParams serviceParams)
serviceParams - Specific invocation params.public List<ApiTemplate.OutputVariable> getOutputVars(com.bigdata.rdf.sparql.ast.service.ServiceNode serviceNode)
Copyright © 2019. All rights reserved.