1 46 package org.jaxen.expr.iter; 47 48 import java.io.Serializable ; 49 import java.util.Iterator ; 50 51 import org.jaxen.ContextSupport; 52 import org.jaxen.UnsupportedAxisException; 53 54 61 public abstract class IterableAxis implements Serializable { 62 63 64 private int value; 65 66 71 public IterableAxis(int axisValue) { 72 this.value = axisValue; 73 } 74 75 80 public int value() { 81 return this.value; 82 } 83 84 92 public abstract Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException; 93 94 103 public Iterator namedAccessIterator( 104 Object contextNode, 105 ContextSupport support, 106 String localName, 107 String namespacePrefix, 108 String namespaceURI) 109 throws UnsupportedAxisException { 110 111 throw new UnsupportedOperationException ("Named access unsupported"); 112 } 113 114 120 public boolean supportsNamedAccess(ContextSupport support) { 121 return false; 122 } 123 124 } 125 | Popular Tags |