|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.Mode
A Mode is a collection of rules; the selection of a rule to apply to a given element is determined by a Pattern.
Constructor Summary | |
Mode()
|
Method Summary | |
void |
addRule(Pattern p,
java.lang.Object obj,
int precedence,
double priority)
Add a rule to the Mode. |
int |
getList(int fingerprint,
int type)
Determine which list to use for a given pattern (we must also search the generic list) |
int |
getNameCode()
Get the name of this mode (for tracing output) |
java.lang.Object |
getRule(NodeInfo node,
Context context)
Get the rule corresponding to a given Node, by finding the best Pattern match. |
java.lang.Object |
getRule(NodeInfo node,
int min,
int max,
Context context)
Get the rule corresponding to a given Node, by finding the best Pattern match, subject to a minimum and maximum precedence. |
void |
setNameCode(int nameCode)
Set the name of this mode (for tracing output) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Mode()
Method Detail |
public void setNameCode(int nameCode)
public int getNameCode()
public void addRule(Pattern p, java.lang.Object obj, int precedence, double priority)
p
- a Patternobj
- the Object to return from getRule() when the supplied element matches this Patternpublic int getList(int fingerprint, int type)
public java.lang.Object getRule(NodeInfo node, Context context) throws TransformerException
node
- the NodeInfo referring to the node to be matched
TransformerException
public java.lang.Object getRule(NodeInfo node, int min, int max, Context context) throws XPathException
node
- the NodeInfo referring to the node to be matched
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |