org.basex.query.path
Class KindTest

java.lang.Object
  extended by org.basex.query.path.Test
      extended by org.basex.query.path.KindTest

public final class KindTest
extends Test

XQuery kind test.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.path.Test
Test.Kind
 
Field Summary
 
Fields inherited from class org.basex.query.path.Test
kind, name, NODE, type
 
Constructor Summary
KindTest(Type t)
          Constructor.
KindTest(Type t, QNm ext)
          Constructor.
 
Method Summary
 boolean eval(Nod n)
          Tests the specified node.
 String toString()
           
 
Methods inherited from class org.basex.query.path.Test
comp, sameAs
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KindTest

public KindTest(Type t)
Constructor.

Parameters:
t - node type

KindTest

public KindTest(Type t,
                QNm ext)
Constructor.

Parameters:
t - node type
ext - type extension
Method Detail

eval

public boolean eval(Nod n)
             throws QueryException
Description copied from class: Test
Tests the specified node.

Specified by:
eval in class Test
Parameters:
n - temporary node
Returns:
result of check
Throws:
QueryException - query exception

toString

public String toString()
Overrides:
toString in class Object