com.novell.xsl.process
Class BuiltInTemplateRule
java.lang.Object
com.novell.xsl.process.Rule
com.novell.xsl.process.TemplateRule
com.novell.xsl.process.BuiltInTemplateRule
- All Implemented Interfaces:
- Comparable
- public class BuiltInTemplateRule
- extends TemplateRule
Constructor Summary |
protected |
BuiltInTemplateRule(BuiltInTemplateRule original,
Pattern pattern)
Constructs a new template rule that is (almost) a shallow copy of the
specified rule, with the intent of using the new rule as one of the
multiple instances representing a union of path expressions. |
|
BuiltInTemplateRule(Pattern pattern,
int importance,
Priority priority,
int number,
Node nsContext)
Constructs a new template rule. |
Method Summary |
Rule |
cloneForUnion(Pattern pattern)
Creates a new template rule that is (almost) a shallow copy of this rule
and whose actual class is the same as this rule's actual class, with the
intent of using the new rule as one of the multiple instances
representing a union of path expressions. |
void |
instantiate(ProcessingEnv env,
Node currentNode,
Mode currentMode,
ResultHandler result)
Instantiates this rule's template for the specified current node and
sends the result to the specified result handler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuiltInTemplateRule
public BuiltInTemplateRule(Pattern pattern,
int importance,
Priority priority,
int number,
Node nsContext)
- Constructs a new template rule.
- Parameters:
pattern
- the rule's path match patternimportance
- the rule's importancepriority
- the rule's priority; null
means use the
default priority based on the rule's patternnumber
- the rule's identifying numbernsContext
- The node in the style sheet from which this rule comes
BuiltInTemplateRule
protected BuiltInTemplateRule(BuiltInTemplateRule original,
Pattern pattern)
- Constructs a new template rule that is (almost) a shallow copy of the
specified rule, with the intent of using the new rule as one of the
multiple instances representing a union of path expressions. The new
rule is not quite a shallow copy because its pattern is set to a
different path expression, and the new and original rules share the same
Template
objects.
- Parameters:
original
- the original template rulepattern
- the clone's path expression, represented as a chain of
FilterExpr
objects- See Also:
cloneForUnion(com.novell.xsl.pattern.Pattern)
cloneForUnion
public Rule cloneForUnion(Pattern pattern)
- Creates a new template rule that is (almost) a shallow copy of this rule
and whose actual class is the same as this rule's actual class, with the
intent of using the new rule as one of the multiple instances
representing a union of path expressions. The new rule is not quite a
shallow copy because its pattern is set to a different path expression,
and the new and original rules share the same
Template
objects.
- Overrides:
cloneForUnion
in class TemplateRule
- Parameters:
pattern
- the clone's path expression, represented as a chain of
FilterExpr
objects
- Returns:
- a clone of this template rule, representing one of the path
expressions in a union expression
instantiate
public void instantiate(ProcessingEnv env,
Node currentNode,
Mode currentMode,
ResultHandler result)
throws XSLException
- Instantiates this rule's template for the specified current node and
sends the result to the specified result handler.
- Overrides:
instantiate
in class TemplateRule
- Parameters:
env
- the current processing environmentcurrentNode
- the current source nodecurrentMode
- the current processing mode, this is really only for
built-in rules which handle all modesresult
- the handler to which results are sent
- Throws:
XSLException
- if a fatal error occurs during instantiation