1 16 package org.apache.cocoon.util.jxpath; 17 18 import org.apache.cocoon.xml.NamespacesTable; 19 import org.apache.commons.jxpath.ri.QName; 20 import org.apache.commons.jxpath.ri.model.NodeIterator; 21 import org.apache.commons.jxpath.ri.model.NodePointer; 22 23 32 public class NamespacesTablePointer extends NodePointer { 33 34 private NamespacesTable namespaces; 35 36 public NamespacesTablePointer(NamespacesTable namespaces) { 37 super(null); 38 this.namespaces = namespaces; 39 } 40 41 public String getNamespaceURI(String prefix) { 42 return namespaces.getUri(prefix); 43 } 44 45 protected String getDefaultNamespaceURI() { 46 return namespaces.getUri(""); 47 } 48 49 public NodeIterator namespaceIterator() { 50 return null; 51 } 52 53 57 public boolean isLeaf() { 58 return true; 59 } 60 61 public boolean isCollection() { 62 return false; 63 } 64 65 public int getLength() { 66 return 0; 67 } 68 69 public QName getName() { 70 return null; 71 } 72 73 public Object getBaseValue() { 74 return null; 75 } 76 77 public Object getImmediateNode() { 78 return null; 79 } 80 81 public void setValue(Object value) { 82 } 84 85 public int compareChildNodePointers(NodePointer arg0, NodePointer arg1) { 86 return -1; 87 } 88 } 89 | Popular Tags |