Class MutationEventImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.events.EventImpl
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.events.MutationEventImpl
-
- All Implemented Interfaces:
Event
,MutationEvent
public class MutationEventImpl extends EventImpl implements MutationEvent
An implementation of the DOM Level 2MutationEvent
interface.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description short
attrChange
static String
DOM_ATTR_MODIFIED
static String
DOM_CHARACTER_DATA_MODIFIED
static String
DOM_NODE_INSERTED
static String
DOM_NODE_INSERTED_INTO_DOCUMENT
static String
DOM_NODE_REMOVED
static String
DOM_NODE_REMOVED_FROM_DOCUMENT
static String
DOM_SUBTREE_MODIFIED
-
Fields inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.events.EventImpl
bubbles, cancelable, currentTarget, eventPhase, initialized, preventDefault, stopPropagation, target, timeStamp, type
-
Fields inherited from interface org.w3c.dom.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE
-
Fields inherited from interface org.w3c.dom.events.MutationEvent
ADDITION, MODIFICATION, REMOVAL
-
-
Constructor Summary
Constructors Constructor Description MutationEventImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getAttrChange()
attrChange
indicates the type of change which triggered the DOMAttrModified event.String
getAttrName()
String
getNewValue()
String
getPrevValue()
Node
getRelatedNode()
void
initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)
Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.dom.events.EventImpl
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.events.Event
getBubbles, getCancelable, getCurrentTarget, getEventPhase, getTarget, getTimeStamp, getType, initEvent, preventDefault, stopPropagation
-
-
-
-
Field Detail
-
attrChange
public short attrChange
-
DOM_SUBTREE_MODIFIED
public static final String DOM_SUBTREE_MODIFIED
- See Also:
- Constant Field Values
-
DOM_NODE_INSERTED
public static final String DOM_NODE_INSERTED
- See Also:
- Constant Field Values
-
DOM_NODE_REMOVED
public static final String DOM_NODE_REMOVED
- See Also:
- Constant Field Values
-
DOM_NODE_REMOVED_FROM_DOCUMENT
public static final String DOM_NODE_REMOVED_FROM_DOCUMENT
- See Also:
- Constant Field Values
-
DOM_NODE_INSERTED_INTO_DOCUMENT
public static final String DOM_NODE_INSERTED_INTO_DOCUMENT
- See Also:
- Constant Field Values
-
DOM_ATTR_MODIFIED
public static final String DOM_ATTR_MODIFIED
- See Also:
- Constant Field Values
-
DOM_CHARACTER_DATA_MODIFIED
public static final String DOM_CHARACTER_DATA_MODIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAttrName
public String getAttrName()
- Specified by:
getAttrName
in interfaceMutationEvent
- Returns:
- the name of the Attr which changed, for DOMAttrModified events. Undefined for others.
-
getAttrChange
public short getAttrChange()
attrChange
indicates the type of change which triggered the DOMAttrModified event. The values can beMODIFICATION
,ADDITION
, orREMOVAL
.- Specified by:
getAttrChange
in interfaceMutationEvent
-
getNewValue
public String getNewValue()
- Specified by:
getNewValue
in interfaceMutationEvent
- Returns:
- the new string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.
-
getPrevValue
public String getPrevValue()
- Specified by:
getPrevValue
in interfaceMutationEvent
- Returns:
- the previous string value of the Attr for DOMAttrModified events, or of the CharacterData node for DOMCharDataModifed events. Undefined for others.
-
getRelatedNode
public Node getRelatedNode()
- Specified by:
getRelatedNode
in interfaceMutationEvent
- Returns:
- a Node related to this event, other than the target that the node was dispatched to. For DOMNodeRemoved, it is the node which was removed. No other uses are currently defined.
-
initMutationEvent
public void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg)
Initialize a mutation event, or overwrite the event's current settings with new values of the parameters.- Specified by:
initMutationEvent
in interfaceMutationEvent
-
-