com.japisoft.xpath.kit
Class FastParserKit

java.lang.Object
  |
  +--com.japisoft.xpath.AbstractKit
        |
        +--com.japisoft.xpath.kit.FastParserKit
All Implemented Interfaces:
XPathKit

public class FastParserKit
extends AbstractKit

Sample of XPathKit for FastParser lightweight node : SimpleNode

Since:
1.0
Version:
1.0
Author:
(c) 2003 JAPISOFT
See Also:
XPathKit

Constructor Summary
FastParserKit()
           
 
Method Summary
 java.lang.String getLang(java.lang.Object node)
          Compute the language for this node
 Lib getLibrary()
           
 java.lang.String getLocalName(java.lang.Object node)
          Compute the local name of the node
 java.lang.String getName(java.lang.Object node)
          Compute the qualified name for this node
 java.lang.String getNamespaceURI(java.lang.Object node)
          Compute the namespace URI for this node
 Navigator getNavigator()
           
 java.lang.Object getNodeForId(java.lang.Object refNode, java.lang.String id)
          This method will always return null as the FastParser SimpleNode for v1.6 doesn't includes support for ID
 java.lang.String getStringValue(java.lang.Object node)
          Compute the string-value for this node
 
Methods inherited from class com.japisoft.xpath.AbstractKit
getBetterReferenceNode, getId, getSupportedFeatures, isFeatureSupported, setFeature
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastParserKit

public FastParserKit()
Method Detail

getLibrary

public Lib getLibrary()
Returns:
the library resolver. If null is returned then the standard library is used

getNavigator

public Navigator getNavigator()
Returns:
the tree navigator toolkit

getStringValue

public java.lang.String getStringValue(java.lang.Object node)
Compute the string-value for this node


getLocalName

public java.lang.String getLocalName(java.lang.Object node)
Compute the local name of the node


getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.Object node)
Compute the namespace URI for this node


getName

public java.lang.String getName(java.lang.Object node)
Compute the qualified name for this node


getLang

public java.lang.String getLang(java.lang.Object node)
Compute the language for this node


getNodeForId

public java.lang.Object getNodeForId(java.lang.Object refNode,
                                     java.lang.String id)
This method will always return null as the FastParser SimpleNode for v1.6 doesn't includes support for ID

Parameters:
refNode - a reference document element
id - ID value to match
Returns:
the node with the unique ID. The ID scope is theorically limited to attribute defined as ID in the DTD