Class ParameterParser.Param
- java.lang.Object
-
- com.priint.pubserver.parameterparser.ParameterParser.Param
-
- Enclosing class:
- ParameterParser
public static class ParameterParser.Param extends java.lang.ObjectA 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
Fields Modifier and Type Field Description static intTYPE_BOOLEANstatic intTYPE_CONSTANTstatic intTYPE_MAPstatic intTYPE_NUMBERstatic intTYPE_TEXTstatic intTYPE_UNKNOWN
-
Constructor Summary
Constructors Constructor Description Param(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()java.lang.StringgetTypeName()java.lang.ObjectgetValue()static java.lang.StringmapToString(java.lang.Object map)Gets a string representation of a Map type parametervoidsetType(int type)java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
- See Also:
- Constant Field Values
-
TYPE_NUMBER
public static final int TYPE_NUMBER
- See Also:
- Constant Field Values
-
TYPE_TEXT
public static final int TYPE_TEXT
- See Also:
- Constant Field Values
-
TYPE_CONSTANT
public static final int TYPE_CONSTANT
- See Also:
- Constant Field Values
-
TYPE_MAP
public static final int TYPE_MAP
- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
-
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:
toStringin classjava.lang.Object
-
getType
public int getType()
-
setType
public void setType(int type)
-
-