Modifier and Type | Class and Description |
---|---|
static class |
ConstantVariable.Builder
Mutable builder that used for setting up unnecessary properties of
class ConstantVariable . |
Variable.DefaultImpls
Constructor and Description |
---|
ConstantVariable(java.lang.String name,
java.lang.String displayName,
HidingMode hidingMode,
java.lang.String value)
Constant that can be reused in dashboard.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asVariable()
Returns string representation of this variable.
|
java.lang.String |
getName()
Variable name.
|
org.json.JSONObject |
toJson()
returns object as JSON.
|
asVariable, getName
public ConstantVariable(java.lang.String name, java.lang.String displayName, HidingMode hidingMode, java.lang.String value)
Constant that can be reused in dashboard.
name
- see BaseVariable.namedisplayName
- see BaseVariable.displayNamehidingMode
- see BaseVariable.hidingModevalue
- value of constantname
- see BaseVariable.namedisplayName
- see BaseVariable.displayNamehidingMode
- see BaseVariable.hidingModevalue
- value of constant