public class BaseVariable implements Variable
Basic data of a variable, e.g. name and type.
It's recommended to use this class as some variable implementation's delegate (see class VariableWithQuery
for example).
Mutable builder is not provided for this class because it's not recommended to use this class as is.
class VariableWithQuery
Modifier and Type | Class and Description |
---|---|
static class |
BaseVariable.Companion |
Variable.DefaultImpls
Modifier and Type | Field and Description |
---|---|
static BaseVariable.Companion |
Companion |
Constructor and Description |
---|
BaseVariable(java.lang.String name,
java.lang.String type,
java.lang.String displayName,
HidingMode hidingMode)
Basic data of a variable, e.g. name and type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
name of a variable.
|
org.json.JSONObject |
toJson()
returns object as JSON.
|
asVariable, getName
public static BaseVariable.Companion Companion
public BaseVariable(java.lang.String name, java.lang.String type, java.lang.String displayName, HidingMode hidingMode)
Basic data of a variable, e.g. name and type.
It's recommended to use this class as some variable implementation's delegate (see class VariableWithQuery
for example).
Mutable builder is not provided for this class because it's not recommended to use this class as is.
name
- name of a variable. You can refer to variable via this name.type
- type of a variabledisplayName
- display name of a variable. This name will be used as a label for variable at dashboardwhen HidingMode.NONE is used. When this value is missed so name will be used for variable label.hidingMode
- hiding mode of a variablename
- name of a variable. You can refer to variable via this name.type
- type of a variabledisplayName
- display name of a variable. This name will be used as a label for variable at dashboard
when HidingMode.NONE is used. When this value is missed so name will be used for variable label.hidingMode
- hiding mode of a variableclass VariableWithQuery