com.xmlcalabash.runtime
Class XAtomicStep

java.lang.Object
  extended by com.xmlcalabash.runtime.XStep
      extended by com.xmlcalabash.runtime.XAtomicStep
All Implemented Interfaces:
XProcRunnable
Direct Known Subclasses:
XCompoundStep, XPipelineCall

public class XAtomicStep
extends XStep

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


Field Summary
protected  java.util.Hashtable<java.lang.String,java.util.Vector<ReadablePipe>> inputs
           
protected  java.util.Hashtable<java.lang.String,WritablePipe> outputs
           
 
Fields inherited from class com.xmlcalabash.runtime.XStep
inScopeOptions, logger, name, parent, runtime, step
 
Constructor Summary
XAtomicStep(XProcRuntime runtime, Step step, XCompoundStep parent)
           
 
Method Summary
protected  void computeParameters(XProcStep xstep)
           
protected  RuntimeValue computeValue(ComputableValue var)
           
protected  java.util.Vector<net.sf.saxon.s9api.XdmItem> evaluateXPath(net.sf.saxon.s9api.XdmNode doc, java.util.Hashtable<java.lang.String,java.lang.String> nsBindings, java.lang.String xpath, java.util.Hashtable<net.sf.saxon.s9api.QName,RuntimeValue> globals)
           
 XCompoundStep getParent()
           
protected  ReadablePipe getPipeFromBinding(Binding binding)
           
 boolean hasReadablePipes(java.lang.String port)
           
 boolean hasWriteablePipe(java.lang.String port)
           
 void instantiate(Step step)
           
protected  void instantiateReaders(Step step)
           
 RuntimeValue optionAvailable(net.sf.saxon.s9api.QName optName)
           
 void reportError(net.sf.saxon.s9api.XdmNode doc)
           
 void reset()
           
 void run()
           
 
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, hasInScopeVariableBinding, hasInScopeVariableValue, 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

inputs

protected java.util.Hashtable<java.lang.String,java.util.Vector<ReadablePipe>> inputs

outputs

protected java.util.Hashtable<java.lang.String,WritablePipe> outputs
Constructor Detail

XAtomicStep

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

getParent

public XCompoundStep getParent()
Overrides:
getParent in class XStep

hasReadablePipes

public boolean hasReadablePipes(java.lang.String port)

hasWriteablePipe

public boolean hasWriteablePipe(java.lang.String port)

optionAvailable

public RuntimeValue optionAvailable(net.sf.saxon.s9api.QName optName)
Specified by:
optionAvailable in class XStep

getPipeFromBinding

protected ReadablePipe getPipeFromBinding(Binding binding)

instantiateReaders

protected void instantiateReaders(Step step)

instantiate

public void instantiate(Step step)
Specified by:
instantiate in class XStep

computeParameters

protected void computeParameters(XProcStep xstep)
                          throws net.sf.saxon.s9api.SaxonApiException
Throws:
net.sf.saxon.s9api.SaxonApiException

reset

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

run

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

reportError

public void reportError(net.sf.saxon.s9api.XdmNode doc)

computeValue

protected RuntimeValue computeValue(ComputableValue var)

evaluateXPath

protected java.util.Vector<net.sf.saxon.s9api.XdmItem> evaluateXPath(net.sf.saxon.s9api.XdmNode doc,
                                                                     java.util.Hashtable<java.lang.String,java.lang.String> nsBindings,
                                                                     java.lang.String xpath,
                                                                     java.util.Hashtable<net.sf.saxon.s9api.QName,RuntimeValue> globals)