public class XdsCommandProcessor
extends java.lang.Object
The DirXML engine passed two stylesheet parameters to an XSLT stylesheet rule.
Both parameters are of type XdsCommandProcessor
. One is named srcCommandProcessor and
will execute the command using source of the current transaction (NDS for subscriber-channel transactions
and the app shim for publisher-channel transactions) and the other is named
destQueryProcessor and will execute the command using the destination of the current transaction (the
app shim for subscriber-channel transactions and NDS for publisher channel transactions).
Constructor and Description |
---|
XdsCommandProcessor(com.novell.nds.dirxml.engine.XdsCommandProcessor processor,
com.novell.nds.dirxml.engine.VRDExceptionListener listener)
Create an
XdsCommandProcessor . |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
execute(org.w3c.dom.Document executeDoc)
Execute an XDS command contained in the passed document.
|
org.w3c.dom.Document |
execute(com.novell.xml.xpath.ExpressionValue executeValue)
Perform an XDS query contained in the passed ExpressionValue.
|
org.w3c.dom.Document |
execute(com.novell.xml.xpath.NodeSet executeSet)
Execute an XDS command contained in the passed XPath nodeset.
|
org.w3c.dom.Document |
execute(com.novell.xsl.process.ResultTreeFragment executeFragment)
Execute an XDS command contained in the passed XSLT result tree fragment.
|
public XdsCommandProcessor(com.novell.nds.dirxml.engine.XdsCommandProcessor processor, com.novell.nds.dirxml.engine.VRDExceptionListener listener)
XdsCommandProcessor
. Since the engine version of XdsCommandProcessor
can
only be created by the engine, this effectively limits instance creation of
the command processor to the engine.processor
- The engine query processor that will actually perform the querylistener
- The object to notify in case of an exceptionpublic org.w3c.dom.Document execute(org.w3c.dom.Document executeDoc) throws com.novell.nds.dirxml.engine.VRDException
executeDoc
- The XDS document containing the command to execute.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document execute(com.novell.xsl.process.ResultTreeFragment executeFragment) throws com.novell.nds.dirxml.engine.VRDException
executeFragment
- The XSLT result tree fragment containing the command to execute. This must
be a well-formed XDS document from the fragment root down.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document execute(com.novell.xml.xpath.NodeSet executeSet) throws com.novell.nds.dirxml.engine.VRDException
executeSet
- The XPath nodeset containing the command to execute. This must
be a well-formed XDS document from the fragment root down.com.novell.nds.dirxml.engine.VRDException
public org.w3c.dom.Document execute(com.novell.xml.xpath.ExpressionValue executeValue) throws com.novell.nds.dirxml.engine.VRDException, com.novell.xml.xpath.XPathConversionException
executeValue
- The NodeSet or ResultTree fragment containing XdsQuerycom.novell.nds.dirxml.engine.VRDException
com.novell.xml.xpath.XPathConversionException