com.xmlcalabash.runtime
Class XCompoundStep

java.lang.Object
  extended by com.xmlcalabash.runtime.XStep
      extended by com.xmlcalabash.runtime.XAtomicStep
          extended by com.xmlcalabash.runtime.XCompoundStep
All Implemented Interfaces:
XProcRunnable
Direct Known Subclasses:
XCatch, XChoose, XForEach, XGroup, XOtherwise, XPipeline, XRootStep, XTry, XUntilUnchanged, XViewport, XWhen

public class XCompoundStep
extends XAtomicStep

Created by IntelliJ IDEA. User: ndw Date: Oct 8, 2008 Time: 5:26:50 AM To change this template use File | Settings | File Templates.


Field Summary
protected  java.util.Vector<XStep> subpipeline
           
protected  java.util.Hashtable<net.sf.saxon.s9api.QName,RuntimeValue> variables
           
 
Fields inherited from class com.xmlcalabash.runtime.XAtomicStep
inputs, outputs
 
Fields inherited from class com.xmlcalabash.runtime.XStep
inScopeOptions, logger, name, parent, runtime, step
 
Constructor Summary
XCompoundStep(XProcRuntime runtime, Step step, XCompoundStep parent)
           
 
Method Summary
protected  void addStep(XStep step)
           
protected  void copyInputs()
           
 ReadablePipe getBinding(java.lang.String stepName, java.lang.String portName)
           
 RuntimeValue getVariable(net.sf.saxon.s9api.QName name)
           
 boolean hasInScopeVariableBinding(net.sf.saxon.s9api.QName name)
           
 boolean hasInScopeVariableValue(net.sf.saxon.s9api.QName name)
           
 void instantiate(Step step)
           
 void reset()
           
 void run()
           
 
Methods inherited from class com.xmlcalabash.runtime.XAtomicStep
computeParameters, computeValue, evaluateXPath, getParent, getPipeFromBinding, hasReadablePipes, hasWriteablePipe, instantiateReaders, optionAvailable, reportError
 
Methods inherited from class com.xmlcalabash.runtime.XStep
addInput, addOutput, clearOptions, clearParameters, error, fine, finer, finest, getDeclareStep, getExtensionAttribute, getInheritedExtensionAttribute, getInput, getInScopeOptions, getName, getNode, getOption, getOptions, getOutput, getParameter, getParameter, getParameterPorts, getParameters, getParameters, getStep, getType, info, setOption, setParameter, setParameter, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variables

protected java.util.Hashtable<net.sf.saxon.s9api.QName,RuntimeValue> variables

subpipeline

protected java.util.Vector<XStep> subpipeline
Constructor Detail

XCompoundStep

public XCompoundStep(XProcRuntime runtime,
                     Step step,
                     XCompoundStep parent)
Method Detail

hasInScopeVariableBinding

public boolean hasInScopeVariableBinding(net.sf.saxon.s9api.QName name)
Overrides:
hasInScopeVariableBinding in class XStep

hasInScopeVariableValue

public boolean hasInScopeVariableValue(net.sf.saxon.s9api.QName name)
Overrides:
hasInScopeVariableValue in class XStep

getVariable

public RuntimeValue getVariable(net.sf.saxon.s9api.QName name)

getBinding

public ReadablePipe getBinding(java.lang.String stepName,
                               java.lang.String portName)

addStep

protected void addStep(XStep step)

instantiate

public void instantiate(Step step)
Overrides:
instantiate in class XAtomicStep

copyInputs

protected void copyInputs()
                   throws net.sf.saxon.s9api.SaxonApiException
Throws:
net.sf.saxon.s9api.SaxonApiException

reset

public void reset()
Specified by:
reset in interface XProcRunnable
Overrides:
reset in class XAtomicStep

run

public void run()
         throws net.sf.saxon.s9api.SaxonApiException
Specified by:
run in interface XProcRunnable
Overrides:
run in class XAtomicStep
Throws:
net.sf.saxon.s9api.SaxonApiException