public class EventMethodModel extends Object implements Serializable, org.apache.xmlgraphics.util.XMLizable
EventMethodModel.| Modifier and Type | Class and Description |
|---|---|
static class |
EventMethodModel.Parameter
Represents an event parameter.
|
| Constructor and Description |
|---|
EventMethodModel(String methodName,
EventSeverity severity)
Creates an new instance.
|
| Modifier and Type | Method and Description |
|---|---|
EventMethodModel.Parameter |
addParameter(Class type,
String name)
Adds a method parameter.
|
void |
addParameter(EventMethodModel.Parameter param)
Adds a method parameter.
|
String |
getExceptionClass()
Returns the primary exception class for this event method.
|
String |
getMethodName()
Returns the event method name
|
List |
getParameters()
Returns an unmodifiable list of parameters for this event method.
|
EventSeverity |
getSeverity()
Returns the event's severity level.
|
void |
setExceptionClass(String exceptionClass)
Sets the primary exception class for this event method.
|
void |
setMethodName(String name)
Sets the event method name.
|
void |
setSeverity(EventSeverity severity)
Sets the event's severity level.
|
void |
toSAX(ContentHandler handler) |
public EventMethodModel(String methodName, EventSeverity severity)
methodName - the event method's nameseverity - the event severitypublic void addParameter(EventMethodModel.Parameter param)
param - the method parameterpublic EventMethodModel.Parameter addParameter(Class type, String name)
type - the type of the parametername - the name of the parameterpublic void setMethodName(String name)
name - the event namepublic String getMethodName()
public void setSeverity(EventSeverity severity)
severity - the severitypublic EventSeverity getSeverity()
public List getParameters()
public void setExceptionClass(String exceptionClass)
exceptionClass - the exception classpublic String getExceptionClass()
public void toSAX(ContentHandler handler) throws SAXException
toSAX in interface org.apache.xmlgraphics.util.XMLizableSAXExceptionCopyright © 2021 Apache Software Foundation. All rights reserved.