dk.brics.xpath
Class NameTest

java.lang.Object
  extended by dk.brics.xpath.Node
      extended by dk.brics.xpath.Test
          extended by dk.brics.xpath.NameTest

public class NameTest
extends Test

Name-test node.


Nested Class Summary
 
Nested classes/interfaces inherited from class dk.brics.xpath.Test
Test.Kind
 
Constructor Summary
NameTest(String prefix, String localname)
          Constructs a new name-test node.
 
Method Summary
 void apply(Visitor v)
          Applies the given Visitor to this node.
 String getLocalName()
          Gets the local name.
 String getPrefix()
          Gets the namespace prefix.
 String getQualifiedName()
          Gets the qualified name.
 
Methods inherited from class dk.brics.xpath.Test
getKind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameTest

public NameTest(String prefix,
                String localname)
Constructs a new name-test node.

Parameters:
prefix - namespace prefix
localname - local name
Method Detail

apply

public void apply(Visitor v)
Description copied from class: Node
Applies the given Visitor to this node.

Overrides:
apply in class Test
Parameters:
v - node visitor

getLocalName

public String getLocalName()
Gets the local name.

Returns:
local name

getPrefix

public String getPrefix()
Gets the namespace prefix.

Returns:
namespace prefix

getQualifiedName

public String getQualifiedName()
Gets the qualified name.

Returns:
qualified name


Copyright © 2005-2010 Anders Møller.