org.apache.xerces.impl.xpath

Class XPath.NodeTest

Enclosing Class:
XPath
Implemented Interfaces:
Cloneable

public static class XPath.NodeTest
extends java.lang.Object
implements Cloneable

Node test.

Author:
Andy Clark, IBM

Field Summary

static short
NAMESPACE
Type: namespace
static short
NODE
Type: node.
static short
QNAME
Type: qualified name.
static short
WILDCARD
Type: wildcard.
org.apache.xerces.xni.QName
name
Node qualified name.
short
type
Node test type.

Constructor Summary

NodeTest(String prefix, String uri)
Constructs a node test of type Namespace.
NodeTest(XPath.NodeTest nodeTest)
Copy constructor.
NodeTest(org.apache.xerces.xni.QName name)
Constructs a node test of type QName.
NodeTest(short type)
Constructs a node test of type WILDCARD or NODE.

Method Summary

Object
clone()
Returns a clone of this object.
String
toString()
Returns a string representation of this object.

Field Details

NAMESPACE

public static final short NAMESPACE
Type: namespace

Field Value:
4


NODE

public static final short NODE
Type: node.

Field Value:
3


QNAME

public static final short QNAME
Type: qualified name.

Field Value:
1


WILDCARD

public static final short WILDCARD
Type: wildcard.

Field Value:
2


name

public final org.apache.xerces.xni.QName name
Node qualified name.


type

public short type
Node test type.

Constructor Details

NodeTest

public NodeTest(String prefix,
                String uri)
Constructs a node test of type Namespace.


NodeTest

public NodeTest(XPath.NodeTest nodeTest)
Copy constructor.


NodeTest

public NodeTest(org.apache.xerces.xni.QName name)
Constructs a node test of type QName.


NodeTest

public NodeTest(short type)
Constructs a node test of type WILDCARD or NODE.

Method Details

clone

public Object clone()
Returns a clone of this object.


toString

public String toString()
Returns a string representation of this object.


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.