org.exist.xquery
Class TypeTest

java.lang.Object
  extended by org.exist.xquery.TypeTest
All Implemented Interfaces:
NodeTest
Direct Known Subclasses:
NameTest

public class TypeTest
extends Object
implements NodeTest

Tests if a node is of a given node type.

Author:
Wolfgang Meier (wolfgang@exist-db.org)

Constructor Summary
TypeTest(int nodeType)
           
 
Method Summary
 QName getName()
          The method getName
 int getType()
          The method getType
 boolean isWildcardTest()
          The method isWildcardTest
 boolean matches(Node other)
          The method matches
 boolean matches(NodeProxy proxy)
          The method matches
 boolean matches(XMLStreamReader reader)
           
 void setType(int nodeType)
          The method setType
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeTest

public TypeTest(int nodeType)
Method Detail

setType

public void setType(int nodeType)
Description copied from interface: NodeTest
The method setType

Specified by:
setType in interface NodeTest
Parameters:
nodeType - an int value

getType

public int getType()
Description copied from interface: NodeTest
The method getType

Specified by:
getType in interface NodeTest
Returns:
an int value

getName

public QName getName()
Description copied from interface: NodeTest
The method getName

Specified by:
getName in interface NodeTest
Returns:
a QName value

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(NodeProxy proxy)
Description copied from interface: NodeTest
The method matches

Specified by:
matches in interface NodeTest
Parameters:
proxy - a NodeProxy value
Returns:
a boolean value

matches

public boolean matches(Node other)
Description copied from interface: NodeTest
The method matches

Specified by:
matches in interface NodeTest
Parameters:
other - a Node value
Returns:
a boolean value

matches

public boolean matches(XMLStreamReader reader)
Specified by:
matches in interface NodeTest

isWildcardTest

public boolean isWildcardTest()
Description copied from interface: NodeTest
The method isWildcardTest

Specified by:
isWildcardTest in interface NodeTest
Returns:
a boolean value


Copyright (C) Wolfgang Meier. All rights reserved.