com.xmlcalabash.model
Class Option

java.lang.Object
  extended by com.xmlcalabash.model.SourceArtifact
      extended by com.xmlcalabash.model.EndPoint
          extended by com.xmlcalabash.model.Option
All Implemented Interfaces:
ComputableValue

public class Option
extends EndPoint
implements ComputableValue

Author:
ndw

Field Summary
 
Fields inherited from class com.xmlcalabash.model.EndPoint
bindings, step
 
Fields inherited from class com.xmlcalabash.model.SourceArtifact
extnAttrs, logger, node, runtime
 
Constructor Summary
Option(XProcRuntime xproc, net.sf.saxon.s9api.XdmNode node)
          Creates a new instance of Option
 
Method Summary
 void addNamespaceBinding(NamespaceBinding binding)
           
protected  void dump(int depth)
           
 net.sf.saxon.s9api.QName getName()
           
 java.util.Vector<NamespaceBinding> getNamespaceBindings()
           
 boolean getRequired()
           
 java.lang.String getSelect()
           
 java.lang.String getType()
           
 net.sf.saxon.s9api.QName getTypeAsQName()
           
 void setName(net.sf.saxon.s9api.QName name)
           
 void setRequired(boolean required)
           
 void setRequired(java.lang.String required)
           
 void setSelect(java.lang.String select)
           
 void setType(java.lang.String type, net.sf.saxon.s9api.XdmNode node)
           
 java.lang.String toString()
           
 boolean valid(Environment env)
           
 
Methods inherited from class com.xmlcalabash.model.EndPoint
addBinding, clearBindings, findPipeBinding, getBinding, getStep, setStep
 
Methods inherited from class com.xmlcalabash.model.SourceArtifact
addExtensionAttribute, error, error, getExtensionAttribute, getExtensionAttributes, getNode, getXProc, xplFile, xplLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xmlcalabash.model.ComputableValue
getBinding, getNode
 

Constructor Detail

Option

public Option(XProcRuntime xproc,
              net.sf.saxon.s9api.XdmNode node)
Creates a new instance of Option

Method Detail

setName

public void setName(net.sf.saxon.s9api.QName name)

getName

public net.sf.saxon.s9api.QName getName()
Specified by:
getName in interface ComputableValue

setType

public void setType(java.lang.String type,
                    net.sf.saxon.s9api.XdmNode node)

getType

public java.lang.String getType()
Specified by:
getType in interface ComputableValue

getTypeAsQName

public net.sf.saxon.s9api.QName getTypeAsQName()
Specified by:
getTypeAsQName in interface ComputableValue

setRequired

public void setRequired(java.lang.String required)

setRequired

public void setRequired(boolean required)

getRequired

public boolean getRequired()

setSelect

public void setSelect(java.lang.String select)

getSelect

public java.lang.String getSelect()
Specified by:
getSelect in interface ComputableValue

addNamespaceBinding

public void addNamespaceBinding(NamespaceBinding binding)
Specified by:
addNamespaceBinding in interface ComputableValue

getNamespaceBindings

public java.util.Vector<NamespaceBinding> getNamespaceBindings()
Specified by:
getNamespaceBindings in interface ComputableValue

valid

public boolean valid(Environment env)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

dump

protected void dump(int depth)