public class EventModel
extends java.lang.Object
implements java.io.Serializable, org.apache.xmlgraphics.util.XMLizable
Constructor and Description |
---|
EventModel()
Creates a new, empty event model
|
Modifier and Type | Method and Description |
---|---|
void |
addProducer(EventProducerModel producer)
Adds the model of an event producer to the event model.
|
EventProducerModel |
getProducer(java.lang.Class clazz)
Returns the model of an event producer with the given interface.
|
EventProducerModel |
getProducer(java.lang.String interfaceName)
Returns the model of an event producer with the given interface name.
|
java.util.Iterator |
getProducers()
Returns an iterator over the contained event producer models.
|
void |
saveToXML(java.io.File modelFile)
Saves this event model to an XML file.
|
void |
toSAX(org.xml.sax.ContentHandler handler) |
public void addProducer(EventProducerModel producer)
producer
- the event producer modelpublic java.util.Iterator getProducers()
public EventProducerModel getProducer(java.lang.String interfaceName)
interfaceName
- the fully qualified name of the event producerpublic EventProducerModel getProducer(java.lang.Class clazz)
clazz
- the interface of the event producerpublic void toSAX(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException
toSAX
in interface org.apache.xmlgraphics.util.XMLizable
org.xml.sax.SAXException
public void saveToXML(java.io.File modelFile) throws java.io.IOException
modelFile
- the target filejava.io.IOException
- if an I/O error occursCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.