com.icl.saxon.expr
Class PrefixTest

java.lang.Object
  |
  +--com.icl.saxon.expr.PrefixTest
All Implemented Interfaces:
NameTest

public class PrefixTest
extends java.lang.Object
implements NameTest

PrefixTest is class that performs a test as to whether a node has a given namespace prefix. The ttest is on a matching URI, not necessarily the prefix as written.


Constructor Summary
PrefixTest(java.lang.String uri)
           
 
Method Summary
 java.lang.String compile()
          Compile a Java boolean expression to create the name test
 double getDefaultPriority()
          Determine the default priority of this name test when used on its own as a Pattern
 java.lang.String getURI()
           
 boolean isNameOf(NodeInfo node)
          Test whether this name test is satisfied by a given node
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrefixTest

public PrefixTest(java.lang.String uri)
Method Detail

getURI

public java.lang.String getURI()

isNameOf

public boolean isNameOf(NodeInfo node)
                 throws org.xml.sax.SAXException
Description copied from interface: NameTest
Test whether this name test is satisfied by a given node
Specified by:
isNameOf in interface NameTest

getDefaultPriority

public double getDefaultPriority()
Description copied from interface: NameTest
Determine the default priority of this name test when used on its own as a Pattern
Specified by:
getDefaultPriority in interface NameTest

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compile

public java.lang.String compile()
                         throws org.xml.sax.SAXException
Compile a Java boolean expression to create the name test