/** * Does this axis support named access? * * @param support the additional context information * @return true if named access supported. If not iterator() will be used */ public boolean supportsNamedAccess(ContextSupport support) { return (support.getNavigator() instanceof NamedAccessNavigator); }
/** * Does this axis support named access? * * @param support the additional context information * @return true if named access is supported. If not iterator() will be used. */ public boolean supportsNamedAccess(ContextSupport support) { return (support.getNavigator() instanceof NamedAccessNavigator); }
/** * Gets an iterator for the attribute axis. * * @param contextNode the current context node to work from * @param support the additional context information */ public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getAttributeAxisIterator(contextNode); }
public boolean matches(Object node, ContextSupport contextSupport) { Navigator nav = contextSupport.getNavigator(); return nav.isComment( node ); }
public boolean matches(Object node, ContextSupport support) { Navigator nav = support.getNavigator(); return nav.isText( node ); }
/** * Gets the iterator for the child axis. * * @param contextNode the current context node to work from * @param support the additional context information * @return an iterator over the children of the context node * @throws UnsupportedAxisException if the child axis is not supported */ public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getChildAxisIterator(contextNode); }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getDescendantOrSelfAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getDescendantAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getAncestorAxisIterator( contextNode ); }
/** Retrieve the current <code>Navigator</code>. * * @return the navigator */ public Navigator getNavigator() { return getContextSupport().getNavigator(); }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getAncestorOrSelfAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getPrecedingSiblingAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getSelfAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getNamespaceAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getParentAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getFollowingSiblingAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getPrecedingAxisIterator( contextNode ); } }
public Iterator iterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return support.getNavigator().getFollowingAxisIterator( contextNode ); } }
/** * Gets the iterator for the attribute axis that supports named access. * * @param contextNode the current context node to work from * @param support the additional context information * @param localName the local name of the attributes to return * @param namespacePrefix the prefix of the namespace of the attributes to return * @param namespaceURI the uri of the namespace of the attributes to return */ public Iterator namedAccessIterator( Object contextNode, ContextSupport support, String localName, String namespacePrefix, String namespaceURI) throws UnsupportedAxisException { NamedAccessNavigator nav = (NamedAccessNavigator) support.getNavigator(); return nav.getAttributeAxisIterator(contextNode, localName, namespacePrefix, namespaceURI); }
public boolean matches(Object node, ContextSupport support) { Navigator nav = support.getNavigator(); if ( nav.isProcessingInstruction( node ) ) { String name = getName(); if ( name == null || name.length() == 0 ) { return true; } else { return name.equals( nav.getProcessingInstructionTarget( node ) ); } } return false; }