public class EventModel extends Object implements 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(Class clazz)
Returns the model of an event producer with the given interface.
|
EventProducerModel |
getProducer(String interfaceName)
Returns the model of an event producer with the given interface name.
|
Iterator |
getProducers()
Returns an iterator over the contained event producer models.
|
void |
saveToXML(File modelFile)
Saves this event model to an XML file.
|
void |
toSAX(ContentHandler handler) |
public void addProducer(EventProducerModel producer)
producer - the event producer modelpublic Iterator getProducers()
public EventProducerModel getProducer(String interfaceName)
interfaceName - the fully qualified name of the event producerpublic EventProducerModel getProducer(Class clazz)
clazz - the interface of the event producerpublic void toSAX(ContentHandler handler) throws SAXException
toSAX in interface org.apache.xmlgraphics.util.XMLizableSAXExceptionpublic void saveToXML(File modelFile) throws IOException
modelFile - the target fileIOException - if an I/O error occursCopyright © 2021 Apache Software Foundation. All rights reserved.