com.xmlcalabash.model
Class DeclareStep

java.lang.Object
  extended by com.xmlcalabash.model.SourceArtifact
      extended by com.xmlcalabash.model.Step
          extended by com.xmlcalabash.model.CompoundStep
              extended by com.xmlcalabash.model.DeclareStep
Direct Known Subclasses:
Catch, Choose, ForEach, Group, Otherwise, Try, UntilUnchanged, Viewport, When

public class DeclareStep
extends CompoundStep


Field Summary
protected  java.util.Hashtable<net.sf.saxon.s9api.QName,DeclareStep> declaredSteps
           
protected  java.util.HashSet<java.lang.String> importedLibs
           
protected  boolean psviRequired
           
protected  java.lang.String xpathVersion
           
 
Fields inherited from class com.xmlcalabash.model.Step
declaration, env, inputs, outputs, parent, stepName, stepType, version
 
Fields inherited from class com.xmlcalabash.model.SourceArtifact
extnAttrs, logger, node, runtime
 
Constructor Summary
DeclareStep(XProcRuntime xproc, net.sf.saxon.s9api.XdmNode node, java.lang.String name)
          Creates a new instance of DeclareStep
 
Method Summary
 void addImport(java.lang.String uri)
           
protected  boolean checkBinding(Input input)
           
protected  boolean checkOutputBindings()
           
 void declareStep(net.sf.saxon.s9api.QName type, DeclareStep step)
           
 boolean getBodyParsed()
           
 DeclareStep getDeclaration()
           
 net.sf.saxon.s9api.QName getDeclaredType()
           
 java.util.HashSet<java.lang.String> getExcludeInlineNamespaces()
           
 Pipeline getPipeline()
           
 DeclareStep getStepDeclaration(net.sf.saxon.s9api.QName type)
           
 java.util.Collection<DeclareStep> getStepDeclarations()
           
protected  java.util.Vector<net.sf.saxon.s9api.XdmNode> getXmlContent()
           
 boolean imported(java.lang.String uri)
           
 boolean isAtomic()
           
 boolean isPipeline()
           
protected  void patchEnvironment(Environment env)
           
 void setAtomic(boolean isAtomic)
           
 void setBodyParsed(boolean parsed)
           
 void setDeclaredType(net.sf.saxon.s9api.QName type)
           
 void setExcludeInlineNamespaces(java.util.HashSet<java.lang.String> uris)
           
 void setParentDecl(DeclareStep decl)
           
 void setPipeline(Pipeline pipeline)
           
 void setPsviRequired(boolean psvi)
           
 void setup()
           
 void setupEnvironment()
           
protected  void setXmlContent(java.util.Vector<net.sf.saxon.s9api.XdmNode> nodes)
           
 void setXPathVersion(java.lang.String version)
           
 
Methods inherited from class com.xmlcalabash.model.CompoundStep
addVariable, augment, augmentIO, augmentOptions, checkForBindings, checkPrimaryIO, checkVariables, containsStep, getOutput, getVariables, setEnvironment, valid, validBindings, validOutputBinding
 
Methods inherited from class com.xmlcalabash.model.Step
addDependency, addInput, addLog, addOption, addOutput, addParameter, addStep, checkDuplicateVars, checkOptionBinding, checkOptionBinding, dependsOn, dump, dump, getDefaultOutput, getDependencies, getEnvironment, getInput, getLog, getName, getNode, getOption, getOptions, getParameter, getParameters, getPrimaryOutput, getStep, getType, getVersion, inputs, insideALoop, isAnonymous, isPipelineCall, loops, matchesDeclaration, options, orderSteps, outputs, parameters, patchInputBindings, patchPipeBindings, setDeclaration, setSubpipeline, setVersion, subpipeline, toString, validOptions, validParams
 
Methods inherited from class com.xmlcalabash.model.SourceArtifact
addExtensionAttribute, error, error, getExtensionAttribute, getExtensionAttributes, getXProc, xplFile, xplLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

psviRequired

protected boolean psviRequired

xpathVersion

protected java.lang.String xpathVersion

declaredSteps

protected java.util.Hashtable<net.sf.saxon.s9api.QName,DeclareStep> declaredSteps

importedLibs

protected java.util.HashSet<java.lang.String> importedLibs
Constructor Detail

DeclareStep

public DeclareStep(XProcRuntime xproc,
                   net.sf.saxon.s9api.XdmNode node,
                   java.lang.String name)
Creates a new instance of DeclareStep

Method Detail

setXmlContent

protected void setXmlContent(java.util.Vector<net.sf.saxon.s9api.XdmNode> nodes)

getXmlContent

protected java.util.Vector<net.sf.saxon.s9api.XdmNode> getXmlContent()

getBodyParsed

public boolean getBodyParsed()

setBodyParsed

public void setBodyParsed(boolean parsed)

setPsviRequired

public void setPsviRequired(boolean psvi)

setXPathVersion

public void setXPathVersion(java.lang.String version)

setDeclaredType

public void setDeclaredType(net.sf.saxon.s9api.QName type)

setExcludeInlineNamespaces

public void setExcludeInlineNamespaces(java.util.HashSet<java.lang.String> uris)

getExcludeInlineNamespaces

public java.util.HashSet<java.lang.String> getExcludeInlineNamespaces()

setAtomic

public void setAtomic(boolean isAtomic)

isAtomic

public boolean isAtomic()

isPipeline

public boolean isPipeline()
Overrides:
isPipeline in class Step

getDeclaredType

public net.sf.saxon.s9api.QName getDeclaredType()
Overrides:
getDeclaredType in class Step

setParentDecl

public void setParentDecl(DeclareStep decl)

setPipeline

public void setPipeline(Pipeline pipeline)

getPipeline

public Pipeline getPipeline()
Overrides:
getPipeline in class Step

declareStep

public void declareStep(net.sf.saxon.s9api.QName type,
                        DeclareStep step)

imported

public boolean imported(java.lang.String uri)

addImport

public void addImport(java.lang.String uri)

getDeclaration

public DeclareStep getDeclaration()
Overrides:
getDeclaration in class Step

getStepDeclaration

public DeclareStep getStepDeclaration(net.sf.saxon.s9api.QName type)

getStepDeclarations

public java.util.Collection<DeclareStep> getStepDeclarations()

setupEnvironment

public void setupEnvironment()

patchEnvironment

protected void patchEnvironment(Environment env)
Overrides:
patchEnvironment in class Step

setup

public void setup()

checkOutputBindings

protected boolean checkOutputBindings()

checkBinding

protected boolean checkBinding(Input input)
Overrides:
checkBinding in class CompoundStep