Package org.apache.commons.jxpath.ri.compiler

# Class NodeNameTest

java.lang.Object
org.apache.commons.jxpath.ri.compiler.NodeTest
org.apache.commons.jxpath.ri.compiler.NodeNameTest

public class NodeNameTest extends NodeTest
Node name test.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NodeNameTest(QName qname)`
  Constructs a new NodeNameTest.
  `NodeNameTest(QName qname, String namespaceURI)`
  Constructs a new NodeNameTest.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getNamespaceURI()`
  Gets the ns URI.
  `QName`
  `getNodeName()`
  Gets the node name.
  `boolean`
  `isWildcard()`
  Tests whether this is a wildcard test.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### NodeNameTest

    public NodeNameTest(QName qname)
    Constructs a new NodeNameTest.
    Parameters:
      `qname` - name to match

  - ### NodeNameTest

    public NodeNameTest(QName qname, String namespaceURI)
    Constructs a new NodeNameTest.
    Parameters:
      `qname` - name to match
      `namespaceURI` - uri to match

- ## Method Details

  - ### getNamespaceURI

    public String getNamespaceURI()
    Gets the ns URI.
    Returns:
      String

  - ### getNodeName

    public QName getNodeName()
    Gets the node name.
    Returns:
      QName

  - ### isWildcard

    public boolean isWildcard()
    Tests whether this is a wildcard test.
    Returns:
      `true` if the node name is "*".

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`