Class 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 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
    • Constructor Detail

      • ConfigurationVariable

        public ConfigurationVariable​(long id,
                                     String name,
                                     String description,
                                     String valueDefinition,
                                     boolean masked,
                                     int type)
    • 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)