public class ModifierEngine extends Ind2uceEntity implements ParameterListProvider
GSON_DEFAULT, GSON_PLAIN, GSON_PRETTY, version| Constructor and Description |
|---|
ModifierEngine(String name)
Instantiates a new modifier engine.
|
ModifierEngine(String name,
ParameterList params)
Instantiates a new modifier engine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Parameter<?> param)
Adds a parameter.
|
<T> void |
addParameter(String name,
T value)
Adds a parameter.
|
void |
clearParameters()
Removes all parameters.
|
boolean |
equals(Object obj) |
String |
getMethod()
Gets the engine name.
|
Parameter<?> |
getParameterForName(String name)
Gets a parameter.
|
ParameterList |
getParameters()
Gets the list of all parameters.
|
<T> T |
getParameterValue(String name,
Class<T> clazz)
Gets a parameter value.
|
int |
hashCode() |
void |
removeParameter(String name)
Adds a parameter.
|
void |
setMethod(String method)
Sets the engine name.
|
void |
setParameters(ParameterList params)
Replaces all parameters with the parameters of the provided list.
|
fromJson, getGson, getVersion, toJson, toStringpublic ModifierEngine(String name)
name - the name of the parameterpublic ModifierEngine(String name, ParameterList params)
name - the name of the parameterparams - the parameter valuespublic void addParameter(Parameter<?> param)
ParameterListProvideraddParameter in interface ParameterListProviderparam - the parameter to addpublic <T> void addParameter(String name, T value)
ParameterListProvideraddParameter in interface ParameterListProviderT - the generic typename - the name of the parametervalue - the value of the parameterpublic void clearParameters()
ParameterListProviderclearParameters in interface ParameterListProviderpublic String getMethod()
public Parameter<?> getParameterForName(String name)
ParameterListProvidergetParameterForName in interface ParameterListProvidername - the name of the parameterpublic ParameterList getParameters()
ParameterListProvidergetParameters in interface ParameterListProviderpublic <T> T getParameterValue(String name, Class<T> clazz)
ParameterListProvidergetParameterValue in interface ParameterListProviderT - the generic typename - the name of the parameterclazz - the value of the parameterpublic void removeParameter(String name)
ParameterListProviderremoveParameter in interface ParameterListProvidername - the name of the parameter to be deletedpublic void setMethod(String method)
method - the engine name to setpublic void setParameters(ParameterList params)
ParameterListProvidersetParameters in interface ParameterListProviderparams - list of parametersCopyright © 2018. All rights reserved.