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 classprivate classprivate classprivate classprivate classprivate classprivate static interfaceprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBufferprivate ContentHandlerprivate intprivate IFDocumentHandlerprivate Map<String, IFParser.Handler.ElementHandler> private ElementMappingRegistryprivate Documentprivate booleanprivate booleanprivate Attributesprivate ContentHandlerprivate Attributesprivate IFPainterprivate 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 voidvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) private voidestablishForeignAttributes(Map<org.apache.xmlgraphics.util.QName, String> foreignAttributes) private voidestablishStructureTreeElement(Attributes attributes) private ColorgetAttributeAsColor(Attributes attributes, String name) private static LocalegetLanguage(Attributes attributes) private StructureTreeElementgetStructureTreeElement(Attributes attributes) protected voidHandles objects created by "sub-parsers" that implement the ObjectSource interface.private voidprivate voidprivate voidvoidstartElement(String uri, String localName, String qName, Attributes attributes) private booleanstartIFElement(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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getLanguage
-
startIFElement
- Throws:
SAXException
-
handleIFException
- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin 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:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-