Class IFParser.Handler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.fop.render.intermediate.IFParser.Handler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Enclosing class:
- IFParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private class
private class
private class
private class
private class
private static interface
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBuffer
private ContentHandler
private int
private IFDocumentHandler
private Map<String,
IFParser.Handler.ElementHandler> private ElementMappingRegistry
private Document
private boolean
private boolean
private Attributes
private ContentHandler
private Attributes
private IFPainter
private static final String[]
private Map<String,
StructureTreeElement> private Map<String,
GoToXYAction> private FOUserAgent
-
Constructor Summary
ConstructorsConstructorDescriptionHandler
(IFDocumentHandler documentHandler, FOUserAgent userAgent, ElementMappingRegistry elementMappingRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qName) private void
establishForeignAttributes
(Map<org.apache.xmlgraphics.util.QName, String> foreignAttributes) private void
establishStructureTreeElement
(Attributes attributes) private Color
getAttributeAsColor
(Attributes attributes, String name) private static Locale
getLanguage
(Attributes attributes) private StructureTreeElement
getStructureTreeElement
(Attributes attributes) protected void
Handles objects created by "sub-parsers" that implement the ObjectSource interface.private void
private void
private void
void
startElement
(String uri, String localName, String qName, Attributes attributes) private boolean
startIFElement
(String localName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
elementHandlers
-
documentHandler
-
painter
-
userAgent
-
elementMappingRegistry
-
lastAttributes
-
-
ignoreCharacters
private boolean ignoreCharacters -
delegateDepth
private int delegateDepth -
delegate
-
inForeignObject
private boolean inForeignObject -
foreignObject
-
structureTreeHandler
-
pageSequenceAttributes
-
structureTreeElements
-
unresolvedIds
-
SIDES
-
-
Constructor Details
-
Handler
public Handler(IFDocumentHandler documentHandler, FOUserAgent userAgent, ElementMappingRegistry elementMappingRegistry)
-
-
Method Details
-
establishForeignAttributes
-
resetForeignAttributes
private void resetForeignAttributes() -
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
getLanguage
-
startIFElement
- Throws:
SAXException
-
handleIFException
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
addUnresolvedIds
- Throws:
IFException
-
handleExternallyGeneratedObject
Handles objects created by "sub-parsers" that implement the ObjectSource interface. An example of object handled here are ExtensionAttachments.- Parameters:
obj
- the Object to be handled.- Throws:
SAXException
- if an error occurs while handling the extension object
-
getAttributeAsColor
- Throws:
PropertyException
-
getForeignAttributes
-
establishStructureTreeElement
-
getStructureTreeElement
-
resetStructureTreeElement
private void resetStructureTreeElement() -
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-