compareTo
public int compareTo(Object that)
compareTo
public int compareTo(Rule that)
Compares two rules in XSLT processing model order assuming that the modes
are equal.
equals
public boolean equals(Object that)
getAction
public Action getAction()
Getter for property action.
- Value of property action.
getAppearenceCount
public int getAppearenceCount()
Getter for property appearenceCount.
- Value of property appearenceCount.
getImportPrecedence
public int getImportPrecedence()
Getter for property importPrecedence.
- Value of property importPrecedence.
getMatchType
public final short getMatchType()
DOCUMENT ME!
- the type of node the pattern matches which by default should
return ANY_NODE if it can match any kind of node.
getMatchesNodeName
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.
- the name of the element or attribute this pattern matches or null
if this pattern matches any or more than one name.
getMode
public String getMode()
Getter for property mode.
getPattern
public Pattern getPattern()
Getter for property pattern.
- Value of property pattern.
getPriority
public double getPriority()
Getter for property priority.
- Value of property priority.
getUnionRules
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.
- an array of the rules which make up this union rule or null if
this rule is not a union rule
hashCode
public int hashCode()
matches
public final boolean matches(Node node)
DOCUMENT ME!
- true if the pattern matches the given DOM4J node.
setAction
public void setAction(Action action)
Setter for property action.
action
- New value of property action.
setAppearenceCount
public void setAppearenceCount(int appearenceCount)
Setter for property appearenceCount.
appearenceCount
- New value of property appearenceCount.
setImportPrecedence
public void setImportPrecedence(int importPrecedence)
Setter for property importPrecedence.
importPrecedence
- New value of property importPrecedence.
setMode
public void setMode(String mode)
Setter for property mode.
mode
- New value of property mode.
setPattern
public void setPattern(Pattern pattern)
Setter for property pattern.
pattern
- New value of property pattern.
setPriority
public void setPriority(double priority)
Setter for property priority.
priority
- New value of property priority.
toString
public String toString()