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 FONodeCurrent formatting object being handledprotected PropertyListCurrent propertyList for the node being handledprivate intCurrent marker nesting-depth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] data, int start, int length) voidvoidendElement(String uri, String localName, String rawName) private ElementMapping.MakerfindFOMaker(String namespaceURI, String localName) Finds theElementMapping.Makerused to createFONodeobjects of a particular typevoidstartElement(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, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
FOPException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
findFOMaker
Finds theElementMapping.Makerused to createFONodeobjects 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.
-