org.ucl.xpath.ast
Class DocumentTest

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

public class DocumentTest
extends KindTest

Class for Document testing.


Field Summary
static int ELEMENT
          Set internal value for ELEMENT.
static int NONE
          Set internal value for NONE.
static int SCHEMA_ELEMENT
          Set internal value for SCHEMA_ELEMENT.
 
Constructor Summary
DocumentTest()
          Default Constructor for DocumentTest.
DocumentTest(int type, java.lang.Object arg)
          Constructor for DocumentTest.
 
Method Summary
 java.lang.Object accept(XPathVisitor v)
          Support for Visitor interface.
 ElementTest elem_test()
          Element test.
 SchemaElemTest schema_elem_test()
          Schema element test.
 int type()
          Get test type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
Set internal value for NONE.

See Also:
Constant Field Values

ELEMENT

public static final int ELEMENT
Set internal value for ELEMENT.

See Also:
Constant Field Values

SCHEMA_ELEMENT

public static final int SCHEMA_ELEMENT
Set internal value for SCHEMA_ELEMENT.

See Also:
Constant Field Values
Constructor Detail

DocumentTest

public DocumentTest(int type,
                    java.lang.Object arg)
Constructor for DocumentTest.

Parameters:
type - Type of element to test.
arg - xpath object to test.

DocumentTest

public DocumentTest()
Default Constructor for DocumentTest.

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.

type

public int type()
Get test type.

Returns:
Type of test.

elem_test

public ElementTest elem_test()
Element test.

Returns:
Element test.

schema_elem_test

public SchemaElemTest schema_elem_test()
Schema element test.

Returns:
Schema element test.