Class Parameter

    • Constructor Detail

      • Parameter

        public Parameter​(String name,
                         String value)
        Public constructor.
        Parameters:
        name - Name of the parameter
        value - value of the parameter
    • Method Detail

      • getName

        public String getName()
        Get the name of the parameter.
        Returns:
        Returns the name
      • getValue

        public String getValue()
        Get the value of the parameter.
        Returns:
        Returns the value
      • getStringValue

        public String getStringValue()
        Get the value of the parameter as a String value.
        Returns:
        the value as a String
      • getLowerStringValue

        public String getLowerStringValue()
        Get the value of the parameter as a lower case String value.
        Returns:
        the value as a String
      • getUpperStringValue

        public String getUpperStringValue()
        Get the value of the parameter as a upper case String value.
        Returns:
        the value as a String
      • getIntValue

        public int getIntValue()
                        throws EoulsanException
        Get the value of the parameter as a integer value.
        Returns:
        the value as an integer
        Throws:
        EoulsanException
      • getIntValueGreaterOrEqualsTo

        public int getIntValueGreaterOrEqualsTo​(int min)
                                         throws EoulsanException
        * Get the value of the parameter as a integer value and check if this value is greater or equals to the min parameter value.
        Parameters:
        min - minimal value (included)
        Returns:
        the value as an integer
        Throws:
        EoulsanException
      • getIntValueInRange

        public int getIntValueInRange​(int min,
                                      int max)
                               throws EoulsanException
        Get the value of the parameter as a integer value and check if this value is in the correct range.
        Parameters:
        min - minimal value (included)
        max - maximal value (included)
        Returns:
        the value as an integer
        Throws:
        EoulsanException
      • getDoubleValue

        public double getDoubleValue()
                              throws EoulsanException
        Get the value of the parameter as a double value.
        Returns:
        the value as an integer
        Throws:
        EoulsanException
      • getBooleanValue

        public boolean getBooleanValue()
        Get the value of the parameter as a boolean value.
        Returns:
        the value as a boolean
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object