net.sf.swan.xml.input.components
Class CopyState

java.lang.Object
  |
  +--net.sf.swan.xml.input.event.ContextAdapter
        |
        +--net.sf.swan.xml.input.components.CopyState
All Implemented Interfaces:
ContextListener

public class CopyState
extends ContextAdapter

Component that simply copies the client state from one EventContext to another.


Constructor Summary
CopyState()
           
 
Method Summary
 void endElement(EndElementEvent event)
          Copies the client state from the current context to the source context.
 void startElement(StartElementEvent event)
          Copies the client state from the source context to the current context.
 
Methods inherited from class net.sf.swan.xml.input.event.ContextAdapter
getErrorHandler, processingInstruction, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyState

public CopyState()
Method Detail

startElement

public void startElement(StartElementEvent event)
Copies the client state from the source context to the current context.
Overrides:
startElement in class ContextAdapter

endElement

public void endElement(EndElementEvent event)
Copies the client state from the current context to the source context.
Overrides:
endElement in class ContextAdapter