Class ParameterParser.Param
java.lang.Object
com.priint.pubserver.parameterparser.ParameterParser.Param
- Enclosing class:
- ParameterParser
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN- See Also:
-
TYPE_NUMBER
public static final int TYPE_NUMBER- See Also:
-
TYPE_TEXT
public static final int TYPE_TEXT- See Also:
-
TYPE_CONSTANT
public static final int TYPE_CONSTANT- See Also:
-
TYPE_MAP
public static final int TYPE_MAP- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
-
Constructor Details
-
Param
- Parameters:
value- value depending on the type
-
-
Method Details
-
getTypeName
- Returns:
- type name
-
getValue
- Returns:
- value
-
mapToString
Gets a string representation of a Map type parameter
- Parameters:
map- an object- Returns:
- string representation of parameter
-
toString
-
getType
public int getType() -
setType
public void setType(int type)
-