public class ECEventEnableComponent extends java.lang.Object implements ComponentConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
EVENT_NODE
This is the name of the event node.
|
static java.lang.String |
EVENT_NODE_NAME
This is the name of the attribute that contains the event name.
|
static java.lang.String |
EVENT_NODE_PRIORITY
This is the name of the attribute that contains the event name.
|
Constructor and Description |
---|
ECEventEnableComponent()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method calls the disable event for all the defined events for this component.
|
void |
enable(boolean val)
This method enables/disables component event names.
|
void |
init(org.w3c.dom.Element node)
This method loads the list of event names that is associated with this event
component.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String EVENT_NODE
public static final java.lang.String EVENT_NODE_NAME
public static final java.lang.String EVENT_NODE_PRIORITY
public ECEventEnableComponent()
public void destroy()
destroy
in interface ComponentConfiguration
ComponentConfiguration.destroy()
public void enable(boolean val) throws java.lang.Exception
enable
in interface ComponentConfiguration
val
- This is a boolean
value that indicates whether the event is enabled or disabled.java.lang.Exception
- This will not be thrown by this method.ComponentConfiguration.enable(boolean)
public void init(org.w3c.dom.Element node) throws java.lang.Exception
init
in interface ComponentConfiguration
node
- This is an Element
object that represents the event names configured for this component.java.lang.Exception
- This is thrown when there is a problem traversing the element node.ComponentConfiguration.init(org.w3c.dom.Element)