org.apache.cocoon.util.jxpath
Class NamespacesTablePointer

java.lang.Object
  extended by org.apache.commons.jxpath.ri.model.NodePointer
      extended by org.apache.cocoon.util.jxpath.NamespacesTablePointer
All Implemented Interfaces:
Serializable, Cloneable, Comparable, org.apache.commons.jxpath.Pointer

public class NamespacesTablePointer
extends org.apache.commons.jxpath.ri.model.NodePointer

A JXPath Pointer that tracks namespaces defined by a NamespacesTable. This class is to be used to inform JXPath of the namespaces declared in a host environment (e.g. JXTemplateGenerator) using JXPathContext.setNamespaceContextPointer().

Since:
2.1.8
Version:
$Id: NamespacesTablePointer.html 1304258 2012-03-23 10:09:27Z ilgrosso $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
 
Constructor Summary
NamespacesTablePointer(NamespacesTable namespaces)
           
 
Method Summary
 int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer arg0, org.apache.commons.jxpath.ri.model.NodePointer arg1)
           
 Object getBaseValue()
           
protected  String getDefaultNamespaceURI()
           
 Object getImmediateNode()
           
 int getLength()
           
 org.apache.commons.jxpath.ri.QName getName()
           
 String getNamespaceURI(String prefix)
           
 boolean isCollection()
           
 boolean isLeaf()
           
 org.apache.commons.jxpath.ri.model.NodeIterator namespaceIterator()
           
 void setValue(Object value)
           
 
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer
asPath, attributeIterator, childIterator, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, testNode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NamespacesTablePointer

public NamespacesTablePointer(NamespacesTable namespaces)
Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Overrides:
getNamespaceURI in class org.apache.commons.jxpath.ri.model.NodePointer

getDefaultNamespaceURI

protected String getDefaultNamespaceURI()
Overrides:
getDefaultNamespaceURI in class org.apache.commons.jxpath.ri.model.NodePointer

namespaceIterator

public org.apache.commons.jxpath.ri.model.NodeIterator namespaceIterator()
Overrides:
namespaceIterator in class org.apache.commons.jxpath.ri.model.NodePointer

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in class org.apache.commons.jxpath.ri.model.NodePointer

isCollection

public boolean isCollection()
Specified by:
isCollection in class org.apache.commons.jxpath.ri.model.NodePointer

getLength

public int getLength()
Specified by:
getLength in class org.apache.commons.jxpath.ri.model.NodePointer

getName

public org.apache.commons.jxpath.ri.QName getName()
Specified by:
getName in class org.apache.commons.jxpath.ri.model.NodePointer

getBaseValue

public Object getBaseValue()
Specified by:
getBaseValue in class org.apache.commons.jxpath.ri.model.NodePointer

getImmediateNode

public Object getImmediateNode()
Specified by:
getImmediateNode in class org.apache.commons.jxpath.ri.model.NodePointer

setValue

public void setValue(Object value)
Specified by:
setValue in interface org.apache.commons.jxpath.Pointer
Specified by:
setValue in class org.apache.commons.jxpath.ri.model.NodePointer

compareChildNodePointers

public int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer arg0,
                                    org.apache.commons.jxpath.ri.model.NodePointer arg1)
Specified by:
compareChildNodePointers in class org.apache.commons.jxpath.ri.model.NodePointer


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.