Class AbstractElementReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
-
- org.pentaho.reporting.engine.classic.core.modules.parser.simple.readhandlers.AbstractElementReadHandler
-
- All Implemented Interfaces:
ReportElementReadHandler
,org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Direct Known Subclasses:
AbstractImageElementReadHandler
,AbstractShapeElementReadHandler
,AbstractTextElementReadHandler
,AnchorFieldReadHandler
,ComponentFieldReadHandler
,DrawableFieldReadHandler
,DrawableRefReadHandler
,DrawableURLFieldReadHandler
public abstract class AbstractElementReadHandler extends AbstractPropertyXmlReadHandler implements ReportElementReadHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALIGNMENT_ATT
Literal text for an XML attribute.static String
COLOR_ATT
Literal text for an XML attribute.static String
FIELDNAME_ATT
Literal text for an XML attribute.static String
FONT_NAME_ATT
Literal text for an XML attribute.static String
FONT_SIZE_ATT
Literal text for an XML attribute.static String
FONT_STYLE_ATT
Literal text for an XML attribute.static String
FS_BOLD
Literal text for an XML attribute value.static String
FS_EMBEDDED
Literal text for an XML attribute value.static String
FS_ENCODING
Literal text for an XML attribute value.static String
FS_ITALIC
Literal text for an XML attribute value.static String
FS_STRIKETHR
Literal text for an XML attribute value.static String
FS_UNDERLINE
Literal text for an XML attribute value.static String
FUNCTIONNAME_ATT
Literal text for an XML attribute.static String
LINEHEIGHT
Literal text for an XML attribute value.static String
NAME_ATT
Literal text for an XML attribute.static String
NULLSTRING_ATT
Literal text for an XML attribute.static String
STYLE_CLASS_ATT
static String
VALIGNMENT_ATT
Literal text for an XML attribute.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractElementReadHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doneParsing()
Done parsing.Element
getElement()
protected abstract ElementFactory
getElementFactory()
protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
getHandlerForChild(String uri, String tagName, PropertyAttributes attrs)
Object
getObject()
Returns the object for this element or null, if this element does not create an object.protected void
handleInheritedStyle(String styleClass)
protected void
startParsing(PropertyAttributes atts)
Starts parsing.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.modules.parser.base.common.AbstractPropertyXmlReadHandler
getHandlerForChild, startParsing
-
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
characters, deriveParseParameters, endElement, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
-
-
-
-
Field Detail
-
FONT_NAME_ATT
public static final String FONT_NAME_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
FONT_STYLE_ATT
public static final String FONT_STYLE_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
FONT_SIZE_ATT
public static final String FONT_SIZE_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
FS_BOLD
public static final String FS_BOLD
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
FS_ITALIC
public static final String FS_ITALIC
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
FS_UNDERLINE
public static final String FS_UNDERLINE
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
FS_STRIKETHR
public static final String FS_STRIKETHR
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
FS_EMBEDDED
public static final String FS_EMBEDDED
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
FS_ENCODING
public static final String FS_ENCODING
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
LINEHEIGHT
public static final String LINEHEIGHT
Literal text for an XML attribute value.- See Also:
- Constant Field Values
-
NAME_ATT
public static final String NAME_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
ALIGNMENT_ATT
public static final String ALIGNMENT_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
VALIGNMENT_ATT
public static final String VALIGNMENT_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
COLOR_ATT
public static final String COLOR_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
FIELDNAME_ATT
public static final String FIELDNAME_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
FUNCTIONNAME_ATT
public static final String FUNCTIONNAME_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
NULLSTRING_ATT
public static final String NULLSTRING_ATT
Literal text for an XML attribute.- See Also:
- Constant Field Values
-
STYLE_CLASS_ATT
public static final String STYLE_CLASS_ATT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getElementFactory
protected abstract ElementFactory getElementFactory()
-
startParsing
protected void startParsing(PropertyAttributes atts) throws SAXException
Starts parsing.- Overrides:
startParsing
in classAbstractPropertyXmlReadHandler
- Parameters:
atts
- the attributes.- Throws:
SAXException
- if there is a parsing error.
-
getHandlerForChild
protected org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler getHandlerForChild(String uri, String tagName, PropertyAttributes attrs) throws SAXException
- Overrides:
getHandlerForChild
in classAbstractPropertyXmlReadHandler
- Throws:
SAXException
-
doneParsing
protected void doneParsing() throws SAXException
Done parsing.- Overrides:
doneParsing
in classorg.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
- Throws:
SAXException
- if there is a parsing error.
-
handleInheritedStyle
protected void handleInheritedStyle(String styleClass)
-
getElement
public Element getElement()
-
getObject
public Object getObject()
Returns the object for this element or null, if this element does not create an object.- Specified by:
getObject
in interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler
- Returns:
- the object.
-
-