com.jclark.xsl.tr
Class TemplateRuleSet

java.lang.Object
  extended by com.jclark.xsl.tr.TemplateRuleSet

 class TemplateRuleSet
extends java.lang.Object

holds a collection of Templates (Actions) for a mode .. their match patterns ranked by priority and importance


Constructor Summary
TemplateRuleSet(Action builtinAction)
          construct/ initialize with the default, builtin Action
 
Method Summary
(package private)  void add(TopLevelPattern pattern, Importance importImportance, Priority priority, Action action)
          add a new (match template) rule to the set
(package private)  void compile()
          After all the patterns and actions have been added, this must be called to organize them to facilitate quick finding of the best template action when "apply-templates" is performed on a Node
(package private)  Action getAction(Node node, ExprContext context)
          finds and returns the TemplateAction that is the best match (or highest priority) for the given Node in the given context
(package private)  Action getImportAction(Node node, ExprContext context, int importLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateRuleSet

TemplateRuleSet(Action builtinAction)
construct/ initialize with the default, builtin Action

Method Detail

compile

void compile()
After all the patterns and actions have been added, this must be called to organize them to facilitate quick finding of the best template action when "apply-templates" is performed on a Node


add

void add(TopLevelPattern pattern,
         Importance importImportance,
         Priority priority,
         Action action)
add a new (match template) rule to the set


getAction

Action getAction(Node node,
                 ExprContext context)
           throws XSLException
finds and returns the TemplateAction that is the best match (or highest priority) for the given Node in the given context

Throws:
XSLException

getImportAction

Action getImportAction(Node node,
                       ExprContext context,
                       int importLevel)
                 throws XSLException
Throws:
XSLException