Package org.apache.fop.fo
Class FOTreeBuilder.MainFOHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.fop.fo.FOTreeBuilder.MainFOHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- FOTreeBuilder
Main
DefaultHandler
implementation which builds the FO tree.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FONode
Current formatting object being handledprotected PropertyList
Current propertyList for the node being handledprivate int
Current marker nesting-depth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] data, int start, int length) void
void
endElement
(String uri, String localName, String rawName) private ElementMapping.Maker
findFOMaker
(String namespaceURI, String localName) Finds theElementMapping.Maker
used to createFONode
objects of a particular typevoid
startElement
(String namespaceURI, String localName, String rawName, Attributes attlist) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
currentFObj
Current formatting object being handled -
currentPropertyList
Current propertyList for the node being handled -
nestedMarkerDepth
private int nestedMarkerDepthCurrent marker nesting-depth
-
-
Constructor Details
-
MainFOHandler
private MainFOHandler()
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String rawName, Attributes attlist) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
FOPException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
findFOMaker
Finds theElementMapping.Maker
used to createFONode
objects of a particular type- Parameters:
namespaceURI
- URI for the namespace of the elementlocalName
- name of the Element- Returns:
- the ElementMapping.Maker that can create an FO object for this element
- Throws:
FOPException
- if a Maker could not be found for a bound namespace.
-