org.ucl.xpath.ast
Class ElementTest

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.ElementTest

public class ElementTest
extends AttrElemTest

Class for Element testing.


Constructor Summary
ElementTest()
          Default Constructor for ElementTest.
ElementTest(QName name, boolean wild)
          Constructor for ElementTest.
ElementTest(QName name, boolean wild, QName type)
          Constructor for ElementTest.
ElementTest(QName name, boolean wild, QName type, boolean qmark)
          Constructor for ElementTest.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 boolean qmark()
          Set nilled property.
 
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

ElementTest

public ElementTest(QName name,
                   boolean wild,
                   QName type,
                   boolean qmark)
Constructor for ElementTest. This takes in 4 inputs, Name, wildcard test(true/false), type and question mark test(true/false).

Parameters:
name - Name of element to test.
wild - Wildcard test? (true/false).
type - Type of element to test.
qmark - Nilled property (true/false).

ElementTest

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

Parameters:
name - Name of element to test.
wild - Wildcard test? (true/false).
type - Type of element to test.

ElementTest

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

Parameters:
name - Name of element to test.
wild - Wildcard test? (true/false).

ElementTest

public ElementTest()
Default Constructor for ElementTest.

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.

qmark

public boolean qmark()
Set nilled property.

Returns:
Result of operation.