|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dom4j.rule.Rule
public class Rule
Rule matches against DOM4J Node so that some action can be
performed such as in the XSLT processing model.
| Constructor Summary | |
|---|---|
Rule()
|
|
Rule(Pattern pattern)
|
|
Rule(Pattern pattern,
Action action)
|
|
Rule(Rule that,
Pattern pattern)
Constructs a new Rule with the same instance data as the given rule but a different pattern. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object that)
|
int |
compareTo(Rule that)
Compares two rules in XSLT processing model order assuming that the modes are equal. |
boolean |
equals(java.lang.Object that)
|
Action |
getAction()
Getter for property action. |
int |
getAppearenceCount()
Getter for property appearenceCount. |
int |
getImportPrecedence()
Getter for property importPrecedence. |
java.lang.String |
getMatchesNodeName()
For patterns which only match an ATTRIBUTE_NODE or an ELEMENT_NODE then this pattern may return the name of the element or attribute it matches. |
short |
getMatchType()
DOCUMENT ME! |
java.lang.String |
getMode()
Getter for property mode. |
Pattern |
getPattern()
Getter for property pattern. |
double |
getPriority()
Getter for property priority. |
Rule[] |
getUnionRules()
If this rule contains a union pattern then this method should return an array of Rules which describe the union rule, which should contain more than one rule. |
int |
hashCode()
|
boolean |
matches(Node node)
DOCUMENT ME! |
void |
setAction(Action action)
Setter for property action. |
void |
setAppearenceCount(int appearenceCount)
Setter for property appearenceCount. |
void |
setImportPrecedence(int importPrecedence)
Setter for property importPrecedence. |
void |
setMode(java.lang.String mode)
Setter for property mode. |
void |
setPattern(Pattern pattern)
Setter for property pattern. |
void |
setPriority(double priority)
Setter for property priority. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rule()
public Rule(Pattern pattern)
public Rule(Pattern pattern,
Action action)
public Rule(Rule that,
Pattern pattern)
that - DOCUMENT ME!pattern - DOCUMENT ME!| Method Detail |
|---|
public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object that)
compareTo in interface java.lang.Comparablepublic int compareTo(Rule that)
that - DOCUMENT ME!
public java.lang.String toString()
toString in class java.lang.Objectpublic final boolean matches(Node node)
node - DOCUMENT ME!
public Rule[] getUnionRules()
public final short getMatchType()
public final java.lang.String getMatchesNodeName()
public java.lang.String getMode()
public void setMode(java.lang.String mode)
mode - New value of property mode.public int getImportPrecedence()
public void setImportPrecedence(int importPrecedence)
importPrecedence - New value of property importPrecedence.public double getPriority()
public void setPriority(double priority)
priority - New value of property priority.public int getAppearenceCount()
public void setAppearenceCount(int appearenceCount)
appearenceCount - New value of property appearenceCount.public Pattern getPattern()
public void setPattern(Pattern pattern)
pattern - New value of property pattern.public Action getAction()
public void setAction(Action action)
action - New value of property action.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||