gnu.xml.xpath

Class NameTest


public final class NameTest
extends Test

Tests whether a node has the specified name.

Constructor Summary

NameTest(QName qName, boolean anyLocalName, boolean any)

Method Summary

Test
clone(Object context)
boolean
matches(Node node, int pos, int len)
boolean
matchesAny()
boolean
matchesAnyLocalName()
String
toString()

Methods inherited from class gnu.xml.xpath.Test

clone, matches

Constructor Details

NameTest

public NameTest(QName qName,
                boolean anyLocalName,
                boolean any)

Method Details

clone

public Test clone(Object context)
Overrides:
clone in interface Test


matches

public boolean matches(Node node,
                       int pos,
                       int len)
Overrides:
matches in interface Test


matchesAny

public boolean matchesAny()


matchesAnyLocalName

public boolean matchesAnyLocalName()


toString

public String toString()