org.dom4j.rule
Interface Pattern

public interface Pattern
extends NodeFilter

Pattern defines the behaviour for pattern in the XSLT processing model.

SinceNot specified.
Version$Revision:
Author<a href="mailto:james.strachan@metastuff.com">James Strachan </a>
Wiki javadoc Use textile entry format.
Add your comments here.
Field Summary
static short ANY_NODE
Matches any node
static double DEFAULT_PRIORITY
According to the spec we should return 0.5 if we cannot determine the priority
static short NONE
Matches no nodes
static short NUMBER_OF_TYPES
Count of the number of node types
Method Summary
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!
double getPriority()
Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec .
Pattern[] getUnionPatterns()
If this pattern is a union pattern then this method should return an array of patterns which describe the union pattern, which should contain more than one pattern.
boolean matches( Node node )
DOCUMENT ME!
ANY_NODE
public static short ANY_NODE
Matches any node
Wiki javadoc Use textile entry format.
Add your comments here.
DEFAULT_PRIORITY
public static double DEFAULT_PRIORITY
According to the spec we should return 0.5 if we cannot determine the priority
Wiki javadoc Use textile entry format.
Add your comments here.
NONE
public static short NONE
Matches no nodes
Wiki javadoc Use textile entry format.
Add your comments here.
NUMBER_OF_TYPES
public static short NUMBER_OF_TYPES
Count of the number of node types
Wiki javadoc Use textile entry format.
Add your comments here.
getMatchesNodeName
public 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.
Wiki javadoc Use textile entry format.
Add your comments here.
getMatchType
public short getMatchType ( )
DOCUMENT ME!
Wiki javadoc Use textile entry format.
Add your comments here.
getPriority
public double getPriority ( )
Returns the default resolution policy of the pattern according to the XSLT conflict resolution spec .
Wiki javadoc Use textile entry format.
Add your comments here.
getUnionPatterns
public Pattern[] getUnionPatterns ( )
If this pattern is a union pattern then this method should return an array of patterns which describe the union pattern, which should contain more than one pattern. Otherwise this method should return null.
Wiki javadoc Use textile entry format.
Add your comments here.
matches
public boolean matches ( Node node )
DOCUMENT ME!
Implements method in NodeFilter
Parameters
TypeNameDescription
Node node DOCUMENT ME!
Wiki javadoc Use textile entry format.
Add your comments here.