net.sf.swan.xml.input.event
Class ContextEvent

java.lang.Object
  |
  +--net.sf.swan.xml.input.event.ContextEvent
Direct Known Subclasses:
EndElementEvent, ProcessingInstructionEvent, StartElementEvent, TextEvent, TreeResult

public abstract class ContextEvent
extends java.lang.Object


Constructor Summary
protected ContextEvent(ContextEvent prototype)
          Constructor for subclasses which wish to derive event types that propagate from other events.
 
Method Summary
 EventContext connectSource(EventContext sourceContext)
          Utility to connect an event to a new source context.
 void consume()
           
 ElementContext currentContext()
           
protected  java.lang.String getLineInfo()
           
protected  void getPath(ElementContext element, java.lang.StringBuffer path)
           
 boolean isConsumed()
           
 EventContext sourceContext()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextEvent

protected ContextEvent(ContextEvent prototype)
Constructor for subclasses which wish to derive event types that propagate from other events.
Method Detail

sourceContext

public EventContext sourceContext()

currentContext

public ElementContext currentContext()

consume

public void consume()

isConsumed

public boolean isConsumed()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

connectSource

public EventContext connectSource(EventContext sourceContext)
Utility to connect an event to a new source context.
Returns:
the previous source context

getLineInfo

protected java.lang.String getLineInfo()

getPath

protected void getPath(ElementContext element,
                       java.lang.StringBuffer path)