Package org.apache.fop.events.model
Class EventProducerModel
java.lang.Object
org.apache.fop.events.model.EventProducerModel
- All Implemented Interfaces:
Serializable
,org.apache.xmlgraphics.util.XMLizable
public class EventProducerModel
extends Object
implements Serializable, org.apache.xmlgraphics.util.XMLizable
Represents the model of an event producer with multiple event methods.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMethod
(EventMethodModel method) Adds a model instance of an event method.Returns the fully qualified interface name of the event producer.Returns the model instance of an event method for the given method name.Returns an iterator over the contained event producer methods.void
setInterfaceName
(String name) Sets the fully qualified interface name of the event producer.void
toSAX
(ContentHandler handler)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
interfaceName
-
methods
-
-
Constructor Details
-
EventProducerModel
Creates a new instance.- Parameters:
interfaceName
- the fully qualified interface name of the event producer
-
-
Method Details
-
getInterfaceName
Returns the fully qualified interface name of the event producer.- Returns:
- the fully qualified interface name
-
setInterfaceName
Sets the fully qualified interface name of the event producer.- Parameters:
name
- the fully qualified interface name
-
addMethod
Adds a model instance of an event method.- Parameters:
method
- the event method model
-
getMethod
Returns the model instance of an event method for the given method name.- Parameters:
methodName
- the method name- Returns:
- the model instance (or null if no method with the given name exists)
-
getMethods
Returns an iterator over the contained event producer methods.- Returns:
- an iterator (Iterator<EventMethodModel>)
-
toSAX
- Specified by:
toSAX
in interfaceorg.apache.xmlgraphics.util.XMLizable
- Throws:
SAXException
-