gnu.xml.xpath

Class NodeTypeTest


public final class NodeTypeTest
extends Test

Tests whether a node is of a given type.

Constructor Summary

NodeTypeTest(short type)
NodeTypeTest(short type, String data)

Method Summary

Test
clone(Object context)
String
getData()
short
getNodeType()
boolean
matches(Node node, int pos, int len)
String
toString()

Methods inherited from class gnu.xml.xpath.Test

clone, matches

Constructor Details

NodeTypeTest

public NodeTypeTest(short type)


NodeTypeTest

public NodeTypeTest(short type,
                    String data)

Method Details

clone

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


getData

public String getData()


getNodeType

public short getNodeType()


matches

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


toString

public String toString()