1 46 package org.jaxen.expr.iter; 47 48 import java.util.Iterator ; 49 50 import org.jaxen.ContextSupport; 51 import org.jaxen.NamedAccessNavigator; 52 import org.jaxen.UnsupportedAxisException; 53 54 61 public class IterableChildAxis extends IterableAxis { 62 63 68 public IterableChildAxis(int value) { 69 super(value); 70 } 71 72 80 public Iterator iterator(Object contextNode, ContextSupport support) 81 throws UnsupportedAxisException { 82 return support.getNavigator().getChildAxisIterator(contextNode); 83 } 84 85 96 public Iterator namedAccessIterator( 97 Object contextNode, 98 ContextSupport support, 99 String localName, 100 String namespacePrefix, 101 String namespaceURI) 102 throws UnsupportedAxisException { 103 104 NamedAccessNavigator nav = (NamedAccessNavigator) support.getNavigator(); 105 return nav.getChildAxisIterator(contextNode, localName, namespacePrefix, namespaceURI); 106 } 107 108 114 public boolean supportsNamedAccess(ContextSupport support) { 115 return (support.getNavigator() instanceof NamedAccessNavigator); 116 } 117 118 } 119 | Popular Tags |