org.ucl.xpath.ast
Class AttributeTest

java.lang.Object
  extended byorg.ucl.xpath.ast.XPathNode
      extended byorg.ucl.xpath.ast.NodeTest
          extended byorg.ucl.xpath.ast.KindTest
              extended byorg.ucl.xpath.ast.AttrElemTest
                  extended byorg.ucl.xpath.ast.AttributeTest

public class AttributeTest
extends AttrElemTest

Class used to match an attribute node by its name and/or type.


Constructor Summary
AttributeTest()
          Default Constructor for AttributeTest.
AttributeTest(QName name, boolean wild)
          Constructor for AttributeTest.
AttributeTest(QName name, boolean wild, QName type)
          Constructor for AttributeTest.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 
Methods inherited from class org.ucl.xpath.ast.AttrElemTest
name, type, wild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTest

public AttributeTest(QName name,
                     boolean wild,
                     QName type)
Constructor for AttributeTest. This one takes in 3 inputs, Name, wildcard test(true/false) and type.

Parameters:
name - QName.
wild - Wildcard test, True/False.
type - QName type.

AttributeTest

public AttributeTest(QName name,
                     boolean wild)
Constructor for AttributeTest. This one takes in 2 inputs, Name and wildcard test(true/false).

Parameters:
name - QName.
wild - Wildcard test, True/False.

AttributeTest

public AttributeTest()
Default Constructor for AttributeTest.

Method Detail

accept

public java.lang.Object accept(XPathVisitor v)
Support for Visitor interface.

Specified by:
accept in class XPathNode
Returns:
Result of Visitor operation.