org.dom4j.rule.pattern

Class NodeTypePattern

public class NodeTypePattern extends Object implements Pattern

NodeTypePattern implements a Pattern which matches any node of the given node type.

Version: $Revision: 1.7 $

Author: James Strachan

Field Summary
static NodeTypePatternANY_ATTRIBUTE
A pattern which matches any Attribute node
static NodeTypePatternANY_COMMENT
A pattern which matches any Comment node
static NodeTypePatternANY_DOCUMENT
A pattern which matches any Document node
static NodeTypePatternANY_ELEMENT
A pattern which matches any Element node
static NodeTypePatternANY_PROCESSING_INSTRUCTION
A pattern which matches any ProcessingInstruction node
static NodeTypePatternANY_TEXT
A pattern which matches any Text node
Constructor Summary
NodeTypePattern(short nodeType)
Method Summary
StringgetMatchesNodeName()
shortgetMatchType()
doublegetPriority()
Pattern[]getUnionPatterns()
booleanmatches(Node node)

Field Detail

ANY_ATTRIBUTE

public static final NodeTypePattern ANY_ATTRIBUTE
A pattern which matches any Attribute node

ANY_COMMENT

public static final NodeTypePattern ANY_COMMENT
A pattern which matches any Comment node

ANY_DOCUMENT

public static final NodeTypePattern ANY_DOCUMENT
A pattern which matches any Document node

ANY_ELEMENT

public static final NodeTypePattern ANY_ELEMENT
A pattern which matches any Element node

ANY_PROCESSING_INSTRUCTION

public static final NodeTypePattern ANY_PROCESSING_INSTRUCTION
A pattern which matches any ProcessingInstruction node

ANY_TEXT

public static final NodeTypePattern ANY_TEXT
A pattern which matches any Text node

Constructor Detail

NodeTypePattern

public NodeTypePattern(short nodeType)

Method Detail

getMatchesNodeName

public String getMatchesNodeName()

getMatchType

public short getMatchType()

getPriority

public double getPriority()

getUnionPatterns

public Pattern[] getUnionPatterns()

matches

public boolean matches(Node node)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge