Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PARAMETERS |
Constructor and Description |
---|
FunctionObject(String jsonName)
Constructs FunctionObject
|
FunctionObject(String jsonName,
Map<String,String> jsonParameters)
Constructs a FunctionObject
|
FunctionObject(String jsonName,
Parameter... jsonParameters)
Constructs a FunctionObject
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getParameters() |
String |
toJson()
Constructs a json object for this function object
|
public static final String NAME
public static final String PARAMETERS
public FunctionObject(String jsonName)
jsonName
- Usually, name of the function to callpublic FunctionObject(String jsonName, Map<String,String> jsonParameters)
jsonName
- Usually, name of the function to calljsonParameters
- a Map of Parameter Name(String) to Parameter Value (String)NullPointerException
- if jsonParameter is nullpublic FunctionObject(String jsonName, Parameter... jsonParameters)
jsonName
- Usually, name of the function to calljsonParameters
- variable arguments for parameter objectsfor more details on Parameter
Copyright © 2020. All rights reserved.