|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.zcu.fav.kiv.editor.utils.TagParser
public class TagParser
The TagParser class parses values of parameters, properties and attributes loaded
from input files (configuration and XSL stylesheet).
| Constructor Summary | |
|---|---|
TagParser()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TagParser()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||