public final class Parameter extends Object implements ToParameterReference
Modifier and Type | Class and Description |
---|---|
static class |
Parameter.Builder |
static class |
Parameter.Deprecated |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
static String |
DEPRECATED |
static String |
DOCUMENTATION |
static String |
TYPE |
Constructor and Description |
---|
Parameter(Parameter.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static Parameter.Builder |
builder() |
BooleanEqualsFn |
eq(boolean b) |
BooleanEqualsFn |
eq(Expr e) |
boolean |
equals(Object o) |
Expr |
expr() |
static Parameter |
fromNode(String name,
JsonNode node) |
Optional<String> |
getBuiltIn() |
Optional<Value> |
getDefault()
The default value for this Parameter
|
Optional<Value> |
getDefaultValue() |
Optional<Parameter.Deprecated> |
getDeprecated() |
Optional<String> |
getDocumentation() |
Identifier |
getName() |
ParameterType |
getType() |
Optional<Value> |
getValue() |
int |
hashCode() |
boolean |
isBuiltIn() |
boolean |
isRequired() |
String |
template() |
ParameterReference |
toParameterReference() |
String |
toString() |
public static final String TYPE
public static final String DEPRECATED
public static final String DOCUMENTATION
public static final String DEFAULT
public Parameter(Parameter.Builder builder)
public boolean isRequired()
public Optional<Parameter.Deprecated> getDeprecated()
public static Parameter fromNode(String name, JsonNode node) throws RuleError
RuleError
public ParameterType getType()
public Identifier getName()
public boolean isBuiltIn()
public static Parameter.Builder builder()
public ParameterReference toParameterReference()
toParameterReference
in interface ToParameterReference
public String template()
public Expr expr()
public BooleanEqualsFn eq(boolean b)
public BooleanEqualsFn eq(Expr e)
public Optional<Value> getDefault()
Copyright © 2023. All rights reserved.