|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.util.ErrorObserverAdapter
org.exolab.adaptx.xslt.RuleProcessor
public class RuleProcessor
This class is the "template" rule processor which processes an XML document using it's XSLStylesheet. It's primary method #process starts with the "document" rule ("/"), specified or default, and runs through the XML Source tree processing all rules until there is nothing left to process.
Field Summary | |
---|---|
static java.lang.String |
XSL_VENDOR
The XSL vendor property name |
static java.lang.String |
XSL_VENDOR_URL
The XSL vendor-url property name |
static java.lang.String |
XSL_VERSION
The XSL version property name |
Fields inherited from interface org.exolab.adaptx.util.ErrorObserver |
---|
FATAL, NORMAL, WARNING |
Constructor Summary | |
---|---|
RuleProcessor(XSLTStylesheet xsl)
Create a RuleProcessor for the given XSL stylesheet |
Method Summary | |
---|---|
void |
addFunctionResolver(FunctionResolver fnResolver)
Adds the given FunctionResolver used for resovling extension functions. |
void |
addMessageObserver(MessageObserver msgObserver)
Adds the given MessageObserver to this processors list of MessageObservers |
java.lang.String |
getParameter(java.lang.String name)
Returns the parameter value associated with the given name. |
java.lang.String |
getProperty(java.lang.String name)
Returns the property value that is associated with the given name. |
URIResolver |
getURIResolver()
Returns the URIResolver for resolving all URIs. |
void |
process(XPathNode source,
ResultHandler handler)
Processes the given XML Document using this processors stylesheet. |
MessageObserver |
removeMessageObserver(MessageObserver msgObserver)
Removes the given MessageObserver from this processors list of MessageObservers |
void |
setParameter(java.lang.String name,
java.lang.String value)
Sets a property which may be accessed from the XSLT stylesheet via a call to the xslp:param extension function |
void |
setURIResolver(URIResolver resolver)
Sets the URIResolver for resolving all URIs. |
Methods inherited from class org.exolab.adaptx.util.ErrorObserverAdapter |
---|
addErrorObserver, receiveError, receiveError, receiveError, receiveError, receiveError, receiveError, removeAllErrorObservers, removeErrorObserver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XSL_VERSION
public static final java.lang.String XSL_VENDOR
public static final java.lang.String XSL_VENDOR_URL
Constructor Detail |
---|
public RuleProcessor(XSLTStylesheet xsl)
xsl
- the XSLStylesheet to processdomParser
- the DOMParser to use when creating
the result treeMethod Detail |
---|
public void addFunctionResolver(FunctionResolver fnResolver)
fnResolver
- the FunctionResolver to addorg.exolab.adaptx.xpath.FunctionResolver
public void addMessageObserver(MessageObserver msgObserver)
msgObserver
- the MessageObserver to add to this processors
list of MessageObserverspublic java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter to retrieve the value of
public java.lang.String getProperty(java.lang.String name)
name
- the name of the property to retrieve the value of
public URIResolver getURIResolver()
public void process(XPathNode source, ResultHandler handler)
source
- the XPathNode to processhandler
- the ResultHandler for the result treepublic MessageObserver removeMessageObserver(MessageObserver msgObserver)
msgObserver
- the MessageObserver to remove from this processors
list of MessageObservers
public void setParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic void setURIResolver(URIResolver resolver)
resolver
- the URIResolver to use
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |