|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.process.RuleMap
A rule map organized for pattern matching.
The rule map automatically optimizes its internal storage before doing any matching. This optimization may be time consuming for a large maps, so there is a method available to force the optimization to happen up front.
| Constructor Summary | |
RuleMap()
|
|
| Method Summary | |
void |
addNamed(ExpandedQName targetName,
Rule rule)
Adds the specified rule with the specified target name to this rule map. |
void |
addWildcard(Rule rule)
Adds the specified wildcard rule to this rule map. |
void |
dump(PrintWriter out,
int indent)
Dumps this object to the specified output stream. |
Rule[] |
getRules(ExpandedQName targetName)
Optimizes this rule map for matching (if it isn't already optimized) and returns the optimized rules for the specified target name. |
void |
optimize()
Optimizes this rule map for matching. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RuleMap()
| Method Detail |
public void addNamed(ExpandedQName targetName,
Rule rule)
targetName - the name of the rule's targetrule - the rule to be addedpublic void addWildcard(Rule rule)
rule - the wildcard rule to be addedpublic Rule[] getRules(ExpandedQName targetName)
compareTo method.
The returned array, and the rules in the array, must not be modified
even though there is no enforcement mechanism.
targetName - the desired target name
Rule.compareTo(java.lang.Object)public void optimize()
public void dump(PrintWriter out,
int indent)
out - the output stream to write toindent - number of tabs to indent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||