Class ConfigurationVariable
- java.lang.Object
-
- org.neotropic.kuwaiba.core.apis.persistence.application.ConfigurationVariable
-
public class ConfigurationVariable extends Object
Simple POJO that represents a configuration variable. A configuration variable is a place where a value will be stored so it can retrieved by whomever need it. These variables are typically used to store values that help other modules to work, such as URLs, user names, dimensions, etc- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_ARRAY
The variable is a unidimensional array.static int
TYPE_BOOLEAN
The variable is a booleanstatic int
TYPE_FLOAT
The variable is an floatstatic int
TYPE_INTEGER
The variable is an integerstatic int
TYPE_MATRIX
The variable is a bidimensional array.static int
TYPE_STRING
The variable is a string
-
Constructor Summary
Constructors Constructor Description ConfigurationVariable(long id, String name, String description, String valueDefinition, boolean masked, int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
long
getId()
String
getName()
int
getType()
String
getValueDefinition()
boolean
isMasked()
void
setDescription(String description)
void
setId(long id)
void
setMasked(boolean masked)
void
setName(String name)
void
setType(int type)
void
setValueDefinition(String valueDefinition)
-
-
-
Field Detail
-
TYPE_INTEGER
public static final int TYPE_INTEGER
The variable is an integer- See Also:
- Constant Field Values
-
TYPE_FLOAT
public static final int TYPE_FLOAT
The variable is an float- See Also:
- Constant Field Values
-
TYPE_STRING
public static final int TYPE_STRING
The variable is a string- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
The variable is a boolean- See Also:
- Constant Field Values
-
TYPE_ARRAY
public static final int TYPE_ARRAY
The variable is a unidimensional array. The format that should be used to store arrays is as follows: (value1,value2,value3,valueN)- See Also:
- Constant Field Values
-
TYPE_MATRIX
public static final int TYPE_MATRIX
The variable is a bidimensional array. The format that should be used to store arrays is as follows: [(row1col1, row1col2,... row1colN), (row2col1, row2col2,... row2colN), (rowNcol1, rowNcol2,... rowNcolN)]- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public long getId()
-
setId
public void setId(long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
isMasked
public boolean isMasked()
-
setMasked
public void setMasked(boolean masked)
-
getType
public int getType()
-
setType
public void setType(int type)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getValueDefinition
public String getValueDefinition()
-
setValueDefinition
public void setValueDefinition(String valueDefinition)
-
-