public class TagParser
extends java.lang.Object
TagParser
class parses values of parameters, properties and attributes loaded
from input files (configuration and XSL stylesheet).Constructor and Description |
---|
TagParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertBoolean(boolean boolValue)
Converts the boolean value to the string value "1" or "0".
|
static java.lang.String |
createColor(java.awt.Color color)
Transformes a string containing color in hexadecimal format (#rrggbb) to
Color . |
static java.lang.Boolean |
parseBoolean(java.lang.String boolValue)
Parses boolean value from the input string containig 1/0 or true/false.
|
static java.awt.Color |
parseColor(java.lang.String hexCol)
Parses the string containing color in hexadecimal format (#rrggbb) and converts it to the
Color.
|
static java.lang.String |
parserNumber(java.lang.String text)
Parses the number from the string containing number with unit e.g.
|
static java.lang.String |
parserUnit(java.lang.String text)
Parses the unit from the string containing number with unit e.g.
|
public static java.lang.String parserNumber(java.lang.String text) throws ParserException
text
- the input text containing number and unit.ParserException
- if the input text doesn't contain a number.public static java.lang.String parserUnit(java.lang.String text)
text
- the input text containing number and unit.public static java.lang.String createColor(java.awt.Color color)
Color
.color
- the input color Color
.public static java.awt.Color parseColor(java.lang.String hexCol)
hexCol
- the string containing a color in in hexadecimal format (#rrggbb).public static java.lang.Boolean parseBoolean(java.lang.String boolValue)
boolValue
- the string containing 1/0 or true/false.public static java.lang.String convertBoolean(boolean boolValue)
boolValue
- the input boolean value.