Class ParameterParser.Param

  • Enclosing class:
    ParameterParser

    public static class ParameterParser.Param
    extends java.lang.Object
    A parameter for the parameter interpreter.
    • ['xyz'] is a TEXT
    • [<xyz>] is a CONSTANT key to be replaced from an input hash map
    • [12.3] is a NUMBER
    • all others are UNKNOWN, e.g. [John.Doe]
    • Constructor Detail

      • Param

        public Param​(java.lang.String value)
        Parameters:
        value - value depending on the type
    • Method Detail

      • getTypeName

        public java.lang.String getTypeName()
        Returns:
        type name
      • getValue

        public java.lang.Object getValue()
        Returns:
        value
      • mapToString

        public static java.lang.String mapToString​(java.lang.Object map)

        Gets a string representation of a Map type parameter

        Parameters:
        map - an object
        Returns:
        string representation of parameter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getType

        public int getType()
      • setType

        public void setType​(int type)