Examples of SingleObjectIterator


Examples of org.jaxen.util.SingleObjectIterator

            if (namespaceURI != null) {
                if (namespaceURI.equals(el.getNamespaceURI()) == false) {
                    return JaxenConstants.EMPTY_ITERATOR;
                }
            }
            return new SingleObjectIterator(el);
        }

        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

        if ( parent == null )
        {
            parent = node.getDocument();
        }
       
        return new SingleObjectIterator( parent );
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

            Element node = (Element) contextNode;
            Attribute attr = node.attribute(QName.get(localName, namespacePrefix, namespaceURI));
            if (attr == null) {
                return JaxenConstants.EMPTY_ITERATOR;
            }
            return new SingleObjectIterator(attr);
        }
        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

        if (o instanceof Node) {
            parent = ((Node)o).getParent();
        } else if (isNamespace(o)) {
            parent = ((XPathNamespace)o).getElement();
        }
        return (parent != null ? new SingleObjectIterator(parent) : null);
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

            }
            else if(el.getNamespace() != Namespace.NO_NAMESPACE) {
                return JaxenConstants.EMPTY_ITERATOR;
            }
           
            return new SingleObjectIterator(el);
        }

        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

            parent = ((Text)contextNode).getParent();
        }
       
        if ( parent != null )
        {
            return new SingleObjectIterator( parent );
        }

        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

            Element node = (Element) contextNode;
            Namespace namespace = (namespaceURI == null ? Namespace.NO_NAMESPACE :
                                    Namespace.getNamespace(namespacePrefix, namespaceURI));
            Attribute attr = node.getAttribute(localName, namespace);
            if (attr != null) {
                return new SingleObjectIterator(attr);
            }
        }
        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

        if ( obj instanceof List )
        {
            return ((List)obj).iterator();
        }

        return new SingleObjectIterator( obj );
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

     * @throws UnsupportedAxisException if the semantics of the parent axis are
     *                                  not supported by this object model
     */
    public Iterator getParentAxisIterator(Object contextNode) throws UnsupportedAxisException {
        if (contextNode instanceof OMNode) {
            return new SingleObjectIterator(((OMNode) contextNode).getParent());
        } else if (contextNode instanceof OMNamespaceEx) {
            return new SingleObjectIterator(
                    ((OMNamespaceEx) contextNode).getParent());
        } else if (contextNode instanceof OMAttributeEx) {
            return new SingleObjectIterator(
                    ((OMAttributeEx) contextNode).getParent());
        }
        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here

Examples of org.jaxen.util.SingleObjectIterator

     * @throws UnsupportedAxisException if the semantics of the parent axis are
     *                                  not supported by this object model
     */
    public Iterator getParentAxisIterator(Object contextNode) throws UnsupportedAxisException {
        if (contextNode instanceof OMNode) {
            return new SingleObjectIterator(((OMNode) contextNode).getParent());
        } else if (contextNode instanceof OMNamespaceEx) {
            return new SingleObjectIterator(
                    ((OMNamespaceEx) contextNode).getParent());
        } else if (contextNode instanceof OMAttributeEx) {
            return new SingleObjectIterator(
                    ((OMAttributeEx) contextNode).getParent());
        }
        return JaxenConstants.EMPTY_ITERATOR;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.