Package org.apache.fop.events.model
Class EventModelParser
java.lang.Object
org.apache.fop.events.model.EventModelParser
This is a parser for the event model XML.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.commons.logging.Log
Logger instanceprivate static SAXTransformerFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentHandler
getContentHandler
(EventModel model) Creates a new ContentHandler instance that you can send the event model XML to.static EventModel
Parses an event model file into an EventModel instance.
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOGLogger instance -
tFactory
-
-
Constructor Details
-
EventModelParser
private EventModelParser()
-
-
Method Details
-
parse
Parses an event model file into an EventModel instance.- Parameters:
src
- the Source instance pointing to the XML file- Returns:
- the created event model structure
- Throws:
TransformerException
- if an error occurs while parsing the XML file
-
getContentHandler
Creates a new ContentHandler instance that you can send the event model XML to. The parsed content is accumulated in the model structure.- Parameters:
model
- the EventModel- Returns:
- the ContentHandler instance to receive the SAX stream from the XML file
-