org.ucl.xpath.ast
Class AttrElemTest

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
Direct Known Subclasses:
AttributeTest, ElementTest

public abstract class AttrElemTest
extends KindTest

Common base class for Attribute and Element tests.


Constructor Summary
AttrElemTest()
          Default Constructor for Attribute and Element tests.
AttrElemTest(QName name, boolean wild)
          Constructor for Attribute and Element tests.
AttrElemTest(QName name, boolean wild, QName type)
          Constructor for Attribute and Element tests.
 
Method Summary
 QName name()
          Support for name test.
 QName type()
          Support for type test.
 boolean wild()
          Support for wildcard test.
 
Methods inherited from class org.ucl.xpath.ast.XPathNode
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrElemTest

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

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

AttrElemTest

public AttrElemTest(QName name,
                    boolean wild)
Constructor for Attribute and Element tests. This takes in 2 inputs, Name and wildcard test(true/false).

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

AttrElemTest

public AttrElemTest()
Default Constructor for Attribute and Element tests. This takes in no inputs.

Method Detail

wild

public boolean wild()
Support for wildcard test.

Returns:
Result of wildcard test.

name

public QName name()
Support for name test.

Returns:
Result of name test.

type

public QName type()
Support for type test.

Returns:
Result of type test.