Class ParameterParser.Param

java.lang.Object
com.priint.pubserver.parameterparser.ParameterParser.Param
Enclosing class:
ParameterParser

public static class ParameterParser.Param extends 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]
  • Field Details

  • Constructor Details

    • Param

      public Param(String value)
      Parameters:
      value - value depending on the type
  • Method Details

    • getTypeName

      public String getTypeName()
      Returns:
      type name
    • getValue

      public Object getValue()
      Returns:
      value
    • mapToString

      public static String mapToString(Object map)

      Gets a string representation of a Map type parameter

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

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

      public int getType()
    • setType

      public void setType(int type)