| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.icl.saxon.RuleManager
RuleManager maintains a set of template rules, one set for each mode
| Constructor Summary | |
| RuleManager()create a RuleManager and initialise variables | |
| Method Summary | |
|  java.util.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(java.lang.String modeName)Get the Mode object for a named mode. | 
|  void | resetHandlers()Set up a new table of handlers. | 
|  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 | setHandler(java.lang.String pattern,
           NodeHandler eh)Register a handler for a particular pattern. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public RuleManager()
| Method Detail | 
public void resetHandlers()
public Mode getMode(java.lang.String modeName)
modeName - The name of the mode, as an absolute name. Supply null to get the default
 mode.
public void setHandler(java.lang.String pattern,
                       NodeHandler eh)
                throws org.xml.sax.SAXException
pattern - A match patterneh - The ElementHandler to be usedElementHandler, 
Pattern
public void setHandler(Pattern pattern,
                       NodeHandler eh,
                       Mode mode,
                       int precedence)
                throws org.xml.sax.SAXException
pattern - A match patterneh - The ElementHandler to be usedmode - The processing modeprecedence - The import precedence (use 0 by default)
public void setHandler(Pattern pattern,
                       NodeHandler eh,
                       Mode mode,
                       int precedence,
                       double priority)
                throws org.xml.sax.SAXException
pattern - Must be a valid Pattern.eh - The ElementHandler to be usedmode - The processing mode to which this element handler appliesprecedence - The import precedence of this rulepriority - The priority of the rule: if an element matches several patterns, the
 one with highest priority is usedNodeHandler, 
Pattern
public NodeHandler getHandler(NodeInfo node,
                              Context c)
                       throws org.xml.sax.SAXException
node - The NodeInfo for the relevant node
public NodeHandler getHandler(NodeInfo node,
                              Mode mode,
                              Context c)
                       throws org.xml.sax.SAXException
node - The NodeInfo for the relevant nodemode - The processing mode
public NodeHandler getHandler(NodeInfo node,
                              Mode mode,
                              int min,
                              int max,
                              Context c)
                       throws org.xml.sax.SAXException
public java.util.Enumeration getAllModes()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||