Class MutationEventImpl

java.lang.Object
org.apache.xerces.dom.events.EventImpl
org.apache.xerces.dom.events.MutationEventImpl
All Implemented Interfaces:
Event, MutationEvent

public class MutationEventImpl extends EventImpl implements MutationEvent
An implementation of the DOM Level 2 MutationEvent interface.

INTERNAL:

Usage of this class is not supported. It may be altered or removed at any time.
Version:
$Id: MutationEventImpl.java 533531 2007-04-29 17:24:58Z mrglavas $
  • Field Details

  • Constructor Details

    • MutationEventImpl

      public MutationEventImpl()
  • Method Details

    • getAttrName

      public String getAttrName()
      Specified by:
      getAttrName in interface MutationEvent
      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 be MODIFICATION , ADDITION, or REMOVAL.
      Specified by:
      getAttrChange in interface MutationEvent
    • getNewValue

      public String getNewValue()
      Specified by:
      getNewValue in interface MutationEvent
      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 interface MutationEvent
      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 interface MutationEvent
      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 interface MutationEvent