de.fzi.XPath
Class NameTest

java.lang.Object
  |
  +--de.fzi.XPath.NodeTest
        |
        +--de.fzi.XPath.NameTest

public class NameTest
extends NodeTest

NameTest class.


Field Summary
static int ANY
          Any principal node.
static int INVALID
          Invalid name test
static int NAME
          Principal node with given name.
static int PREFIX_ANY
          Any principal node in given namespace.
static int PREFIX_NAME
          Principal node with given name in given namespace.
 
Constructor Summary
NameTest(java.lang.String thename)
          Instantiates NameTest for given name.
NameTest(java.lang.String theprefix, java.lang.String thename)
          Instantiates NameTest for given name.
 
Method Summary
 int getNameTestType()
          Return name test type of this instance.
static NameTest parseQName(java.lang.String qname)
          Creates a NameTest from given QName.
 java.lang.String toString()
          Return String representation of this instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID

public static final int INVALID
Invalid name test

ANY

public static final int ANY
Any principal node.

PREFIX_ANY

public static final int PREFIX_ANY
Any principal node in given namespace.

NAME

public static final int NAME
Principal node with given name.

PREFIX_NAME

public static final int PREFIX_NAME
Principal node with given name in given namespace.
Constructor Detail

NameTest

public NameTest(java.lang.String thename)
Instantiates NameTest for given name.
Parameters:
thename - name.

NameTest

public NameTest(java.lang.String theprefix,
                java.lang.String thename)
Instantiates NameTest for given name.
Parameters:
preix - prefix.
thename - name.
Method Detail

parseQName

public static NameTest parseQName(java.lang.String qname)
Creates a NameTest from given QName.
Parameters:
qname - QName.
Returns:
Created NameTest.

getNameTestType

public int getNameTestType()
Return name test type of this instance.
Returns:
Name test type code.

toString

public java.lang.String toString()
Return String representation of this instance.
Overrides:
toString in class java.lang.Object
Returns:
String representation of this instance.