GXPARSE hosted by SourceForge.net Logo

ca.gorman.xml.parse.toolkit
Class Coroutine_Callback<T extends Parser>

java.lang.Object
  extended by ca.gorman.xml.parse.toolkit.Coroutine_NoCallback<T>
      extended by ca.gorman.xml.parse.toolkit.Coroutine_Callback<T>
Direct Known Subclasses:
CoroutineCdata, CoroutineDocument, CoroutineDtd, CoroutineElementStack, CoroutineEntityStack

public abstract class Coroutine_Callback<T extends Parser>
extends Coroutine_NoCallback<T>

Base class for invoking Listener methods that call back to the Parser.


Constructor Summary
protected Coroutine_Callback()
           Construct uninitialized instance.
protected Coroutine_Callback(Coroutine coroutine)
           Construct partially initialized instance.
protected Coroutine_Callback(Coroutine coroutine, T parser)
           Construct fully initialized instance.
 
Method Summary
 Coroutine getCoroutine()
           Get the Parser instance.
 void setCoroutine(Coroutine coroutine)
           Set or reset the Coroutine.
 
Methods inherited from class ca.gorman.xml.parse.toolkit.Coroutine_NoCallback
getParser, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Coroutine_Callback

protected Coroutine_Callback()

Construct uninitialized instance.


Coroutine_Callback

protected Coroutine_Callback(Coroutine coroutine)

Construct partially initialized instance.


Coroutine_Callback

protected Coroutine_Callback(Coroutine coroutine,
                             T parser)

Construct fully initialized instance.

Throws:
NullPointerException - if any parameter is null
Method Detail

setCoroutine

public void setCoroutine(Coroutine coroutine)

Set or reset the Coroutine.

Throws:
NullPointerException - if coroutine is null

getCoroutine

public Coroutine getCoroutine()

Get the Parser instance.


GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License