public final class EventModelParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.xml.sax.ContentHandler |
getContentHandler(EventModel model)
Creates a new ContentHandler instance that you can send the event model XML to.
|
static EventModel |
parse(javax.xml.transform.Source src)
Parses an event model file into an EventModel instance.
|
public static EventModel parse(javax.xml.transform.Source src) throws javax.xml.transform.TransformerException
src
- the Source instance pointing to the XML filejavax.xml.transform.TransformerException
- if an error occurs while parsing the XML filepublic static org.xml.sax.ContentHandler getContentHandler(EventModel model)
model
- the EventModelCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.