com.icl.saxon
public class RuleManager extends Object
Version: 10 December 1999: carved out of the old Controller class
Constructor Summary | |
---|---|
RuleManager(NamePool pool)
create a RuleManager and initialise variables |
Method Summary | |
---|---|
Enumeration | getAllModes()
Get a list of all registered modes |
NodeHandler | getHandler(NodeInfo node, Context c)
Find the handler registered for a particular node in default mode. |
NodeHandler | getHandler(NodeInfo node, Mode mode, Context c)
Find the handler registered for a particular node in a specific mode. |
NodeHandler | getHandler(NodeInfo node, Mode mode, int min, int max, Context c)
Get a handler whose import precedence is in a particular range. |
Mode | getMode(int modeNameCode)
Get the Mode object for a named mode. |
StandaloneContext | getStandaloneContext()
Get the standalone context for XPath expressions and patterns. |
void | resetHandlers()
Set up a new table of handlers. |
void | setHandler(String pattern, NodeHandler eh)
Register a handler for a particular pattern. |
void | setHandler(Pattern pattern, NodeHandler eh, Mode mode, int precedence)
Register a handler for a particular pattern. |
void | setHandler(Pattern pattern, NodeHandler eh, Mode mode, int precedence, double priority)
Register a handler for a particular pattern. |
void | setStandaloneContext(StandaloneContext context)
Set the standalone context for XPath expressions and patterns. |
Returns: an Enumeration of all modes in use, excluding the default (unnamed) mode
Parameters: node The NodeInfo for the relevant node
Returns: The handler that will process this node. Returns the default handler for the type of node if there is no specific one registered.
Parameters: node The NodeInfo for the relevant node mode The processing mode
Returns: The handler that will process this node Returns null if there is no specific handler registered.
Parameters: modeNameCode The name code of the mode. Supply -1 to get the default mode.
Returns: the StandaloneContext associated with this RuleManager. Creates a new one if none has been set explicitly.
Parameters: pattern A match pattern eh The NodeHandler to be used
See Also: NodeHandler Pattern
Parameters: pattern A match pattern eh The ElementHandler to be used mode The processing mode precedence The import precedence (use 0 by default)
Parameters: pattern Must be a valid Pattern. eh The ElementHandler to be used mode The processing mode to which this element handler applies precedence The import precedence of this rule priority The priority of the rule: if an element matches several patterns, the one with highest priority is used
See Also: NodeHandler Pattern