Rule matches against DOM4J Node so that some action can be
performed such as in the XSLT processing model.
| Modifier and Type | Field and Description |
|---|---|
| private Action | action
Holds value of property action. |
| private int | appearenceCount
Holds value of property appearenceCount. |
| private int | importPrecedence
Holds value of property importPrecedence. |
| private String | mode
Holds value of property mode. |
| private Pattern | pattern
Holds value of property pattern. |
| private double | priority
Holds value of property priority. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public int | Returns: DOCUMENT ME!DOCUMENT ME! that)Implements java. |
| public boolean | equals(Object
the reference object with which to compare. that)Overrides java. |
| public Action | |
| public int | |
| public int | Returns: Value of property importPrecedence.Getter for property importPrecedence. |
| public final String | Returns: the name of the element or attribute this pattern matches or null if this pattern matches any or more than one name.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. |
| public final short | Returns: the type of node the pattern matches which by default should return ANY_NODE if it can match any kind of node.DOCUMENT ME! |
| public String | |
| public Pattern | |
| public double | |
| public Rule[] | Returns: an array of the rules which make up this union rule or null if this rule is not a union ruleIf 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. |
| public int | |
| public final boolean | |
| public void | |
| public void | setAppearenceCount(int
New value of property appearenceCount. appearenceCount)Setter for property appearenceCount. |
| public void | setImportPrecedence(int
New value of property importPrecedence. importPrecedence)Setter for property importPrecedence. |
| public void | |
| public void | |
| public void | |
| public String |
| action | back to summary |
|---|---|
| private Action action Holds value of property action. | |
| appearenceCount | back to summary |
|---|---|
| private int appearenceCount Holds value of property appearenceCount. | |
| importPrecedence | back to summary |
|---|---|
| private int importPrecedence Holds value of property importPrecedence. | |
| mode | back to summary |
|---|---|
| private String mode Holds value of property mode. | |
| pattern | back to summary |
|---|---|
| private Pattern pattern Holds value of property pattern. | |
| priority | back to summary |
|---|---|
| private double priority Holds value of property priority. | |
| Rule | back to summary |
|---|---|
| public Rule() | |
| Rule | back to summary |
|---|---|
| public Rule(Pattern pattern) | |
| Rule | back to summary |
|---|---|
| public Rule(Pattern pattern, Action action) | |
| Rule | back to summary |
|---|---|
| public Rule(Rule that, Pattern pattern) Constructs a new Rule with the same instance data as the given rule but a different pattern. | |
| compareInt | back to summary |
|---|---|
| private static int compareInt(int value1, int value2) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Rule that) Implements java. Compares two rules in XSLT processing model order assuming that the modes are equal.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAction | back to summary |
|---|---|
| public Action getAction() Getter for property action.
| |
| getAppearenceCount | back to summary |
|---|---|
| public int getAppearenceCount() Getter for property appearenceCount.
| |
| getImportPrecedence | back to summary |
|---|---|
| public int getImportPrecedence() Getter for property importPrecedence.
| |
| getMatchesNodeName | back to summary |
|---|---|
| public final 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. This allows a more efficient rule matching algorithm to be performed, rather than a brute force approach of evaluating every pattern for a given Node.
| |
| getMatchType | back to summary |
|---|---|
| public final short getMatchType() DOCUMENT ME!
| |
| getMode | back to summary |
|---|---|
| public String getMode() Getter for property mode.
| |
| getPattern | back to summary |
|---|---|
| public Pattern getPattern() Getter for property pattern.
| |
| getPriority | back to summary |
|---|---|
| public double getPriority() Getter for property priority.
| |
| getUnionRules | back to summary |
|---|---|
| public 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. Otherwise this method should return null.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public final boolean matches(Node node) DOCUMENT ME!
| |
| setAction | back to summary |
|---|---|
| public void setAction(Action action) Setter for property action.
| |
| setAppearenceCount | back to summary |
|---|---|
| public void setAppearenceCount(int appearenceCount) Setter for property appearenceCount.
| |
| setImportPrecedence | back to summary |
|---|---|
| public void setImportPrecedence(int importPrecedence) Setter for property importPrecedence.
| |
| setMode | back to summary |
|---|---|
| public void setMode(String mode) Setter for property mode.
| |
| setPattern | back to summary |
|---|---|
| public void setPattern(Pattern pattern) Setter for property pattern.
| |
| setPriority | back to summary |
|---|---|
| public void setPriority(double priority) Setter for property priority.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |