net.sf.tomp.xtcl.command
Class Chain

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.VarCommand
          extended by net.sf.tomp.xtcl.command.Chain
All Implemented Interfaces:
Command
Direct Known Subclasses:
TeeFilterCommand

public class Chain
extends VarCommand

Command to assemble and store a transformation chain

Author:
tomp

Field Summary
protected  java.util.List filterStyleRefs
          reference to the filters or styles in the chain
protected  java.lang.String resultRef
          reference to the result of the chain
protected  java.lang.String sourceRef
          reference to the source
 
Fields inherited from class net.sf.tomp.xtcl.command.VarCommand
var
 
Constructor Summary
Chain()
           
 
Method Summary
 void addFilterStyleRef(java.lang.String s)
          adds filter or style reference
 int execute(Context context)
          Creates and executes a chain transformation by chaining SAX filters and XSLT-based SAX filters.
 void setResultRef(java.lang.String s)
          DOCUMENT ME!
 void setSourceRef(java.lang.String s)
          sets source ref name
 java.lang.String toString()
           
 
Methods inherited from class net.sf.tomp.xtcl.command.VarCommand
setVar
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceRef

protected java.lang.String sourceRef
reference to the source


filterStyleRefs

protected java.util.List filterStyleRefs
reference to the filters or styles in the chain


resultRef

protected java.lang.String resultRef
reference to the result of the chain

Constructor Detail

Chain

public Chain()
Method Detail

setSourceRef

public void setSourceRef(java.lang.String s)
sets source ref name

Parameters:
s - source ref name

addFilterStyleRef

public void addFilterStyleRef(java.lang.String s)
adds filter or style reference

Parameters:
s - filter or style reference

setResultRef

public void setResultRef(java.lang.String s)
DOCUMENT ME!

Parameters:
s - DOCUMENT ME!

execute

public int execute(Context context)
            throws java.lang.Exception
Creates and executes a chain transformation by chaining SAX filters and XSLT-based SAX filters.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context -
Returns:
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
"CHAIN " + sourceRef + " -> " + resultRef + " STYLES/FILTERS (" + listList(filterStyleRefs) + ")";


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.