public final class ReportParserUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
HELPER_OBJ_LEGACY_STYLES |
static String |
HELPER_OBJ_REPORT_NAME |
static String |
INCLUDE_PARSING_KEY |
static Object |
INCLUDE_PARSING_VALUE |
Modifier and Type | Method and Description |
---|---|
static boolean |
isIncluded(RootXmlReadHandler rootXmlReadHandler)
Checks whether this report is a included report and not the main report definition.
|
static Boolean |
parseBoolean(String value,
Locator locator) |
static Color |
parseColor(String color)
Parses a color entry.
|
static Color |
parseColor(String color,
Color defaultValue)
Parses a color entry.
|
static Float |
parseFloat(String value,
Locator locator)
Reads an attribute as float and returns
def if that fails. |
static ElementAlignment |
parseHorizontalElementAlignment(String value,
Locator locator)
Parses a horizontal alignment value.
|
static Integer |
parseInteger(String value,
Locator locator)
Reads an attribute as float and returns
def if that fails. |
static float |
parseRelativeFloat(String value,
String exceptionMessage,
Locator locator)
Parses a position of an element.
|
static Stroke |
parseStroke(String strokeStyle,
float weight) |
static int |
parseVersion(String s) |
static ElementAlignment |
parseVerticalElementAlignment(String value,
Locator locator)
Parses a vertical alignment value.
|
static VerticalTextAlign |
parseVerticalTextElementAlignment(String value,
Locator locator) |
public static final String INCLUDE_PARSING_KEY
public static final Object INCLUDE_PARSING_VALUE
public static final String HELPER_OBJ_REPORT_NAME
public static final String HELPER_OBJ_LEGACY_STYLES
public static boolean isIncluded(RootXmlReadHandler rootXmlReadHandler)
rootXmlReadHandler
- the root handler that provides access to the properties.public static ElementAlignment parseVerticalElementAlignment(String value, Locator locator) throws ParseException
value
- the text to parse.locator
- the locator provides the current parse position for meaningful error messages.ParseException
- if the alignment value is not recognised.public static ElementAlignment parseHorizontalElementAlignment(String value, Locator locator) throws ParseException
value
- the text to parse.locator
- the locator provides the current parse position for meaningful error messages.ParseException
- if a parse error occured.public static Float parseFloat(String value, Locator locator) throws ParseException
def
if that fails.value
- the attribute value.locator
- the locator provides the current parse position for meaningful error messages.ParseException
- if an parse error occured.public static Boolean parseBoolean(String value, Locator locator) throws ParseException
ParseException
public static Integer parseInteger(String value, Locator locator) throws ParseException
def
if that fails.value
- the attribute value.locator
- the locator provides the current parse position for meaningful error messages.ParseException
- if an parse error occured.public static Color parseColor(String color)
color
- the color (as a string).public static Color parseColor(String color, Color defaultValue)
color
- the color (as a string).defaultValue
- the default value (returned if no color can be parsed).public static float parseRelativeFloat(String value, String exceptionMessage, Locator locator) throws ParseException
value
- the value.exceptionMessage
- the exception message.locator
- the locator provides the current parse position for meaningful error messages.ParseException
- if there is a problem parsing the string.public static VerticalTextAlign parseVerticalTextElementAlignment(String value, Locator locator) throws ParseException
ParseException
public static int parseVersion(String s)
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.