Package org.apache.axis2.om.impl.llom.traverse

Examples of org.apache.axis2.om.impl.llom.traverse.OMChildrenQNameIterator


     * @param elementQName
     * @return
     * @throws OMException
     */
    public OMElement getFirstChildWithName(QName elementQName) throws OMException {
        OMChildrenQNameIterator omChildrenQNameIterator =
                new OMChildrenQNameIterator(getFirstChild(),
                        elementQName);
        OMNode omNode = null;
        if (omChildrenQNameIterator.hasNext()) {
            omNode = (OMNode) omChildrenQNameIterator.next();
        }

        return ((omNode != null) && (OMNode.ELEMENT_NODE == omNode.getType())) ?
                (OMElement) omNode : null;

View Full Code Here


     * @param elementQName
     * @return
     * @throws org.apache.axis2.om.OMException
     */
    public Iterator getChildrenWithName(QName elementQName) {
        return new OMChildrenQNameIterator(getFirstOMChild(),
                elementQName);
    }
View Full Code Here

     * @param elementQName
     * @return
     * @throws OMException
     */
    public OMElement getFirstChildWithName(QName elementQName) throws OMException {
        OMChildrenQNameIterator omChildrenQNameIterator =
                new OMChildrenQNameIterator(getFirstOMChild(),
                        elementQName);
        OMNode omNode = null;
        if (omChildrenQNameIterator.hasNext()) {
            omNode = (OMNode) omChildrenQNameIterator.next();
        }

        return ((omNode != null) && (OMNode.ELEMENT_NODE == omNode.getType())) ?
                (OMElement) omNode : null;

View Full Code Here

     * @throws org.apache.axis2.om.OMException
     *
     * @throws OMException
     */
    public Iterator getChildrenWithName(QName elementQName) {
        return new OMChildrenQNameIterator(getFirstOMChild(),
                elementQName);
    }
View Full Code Here

     * Method getFirstChildWithName
     *
     * @throws OMException
     */
    public OMElement getFirstChildWithName(QName elementQName) throws OMException {
        OMChildrenQNameIterator omChildrenQNameIterator =
                new OMChildrenQNameIterator(getFirstOMChild(),
                        elementQName);
        OMNode omNode = null;
        if (omChildrenQNameIterator.hasNext()) {
            omNode = (OMNode) omChildrenQNameIterator.next();
        }

        return ((omNode != null) && (OMNode.ELEMENT_NODE == omNode.getType())) ?
                (OMElement) omNode : null;

View Full Code Here

  /**
   * Returns an iterator of child nodes having a given qname
   * @see org.apache.axis2.om.OMContainer#getChildrenWithName(javax.xml.namespace.QName)
   */
  public Iterator getChildrenWithName(QName elementQName) throws OMException {
    return new OMChildrenQNameIterator(getFirstOMChild(),
                elementQName);
  }
View Full Code Here

   * Return the first OMElement child node
   * @see org.apache.axis2.om.OMContainer#getFirstChildWithName(javax.xml.namespace.QName)
   */
  public OMElement getFirstChildWithName(QName elementQName)
      throws OMException {
    Iterator children = new OMChildrenQNameIterator(getFirstOMChild(),
                elementQName);
    while (children.hasNext()) {
      OMNode node = (OMNode) children.next();
     
      //Return the first OMElement node that is found
      if(node instanceof OMElement) {
        return (OMElement)node;
      }
View Full Code Here

     * @return
     * @throws org.apache.axis2.om.OMException
     * @throws OMException
     */
    public Iterator getChildrenWithName(QName elementQName) throws OMException {
        return new OMChildrenQNameIterator((OMNodeImpl) getFirstChild(),
                elementQName);
    }
View Full Code Here

     * @param elementQName
     * @return
     * @throws OMException
     */
    public OMElement getFirstChildWithName(QName elementQName) throws OMException {
        OMChildrenQNameIterator omChildrenQNameIterator =
                new OMChildrenQNameIterator((OMNodeImpl) getFirstChild(),
                        elementQName);
        OMNode omNode = null;
        if (omChildrenQNameIterator.hasNext()) {
            omNode = (OMNode) omChildrenQNameIterator.next();
        }

        return ((omNode != null) && (OMNode.ELEMENT_NODE == omNode.getType())) ? (OMElement) omNode : null;

    }
View Full Code Here

     * @return
     * @throws org.apache.axis2.om.OMException
     * @throws OMException
     */
    public Iterator getChildrenWithName(QName elementQName) throws OMException {
        return new OMChildrenQNameIterator((OMNodeImpl) getFirstChild(),
                elementQName);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.impl.llom.traverse.OMChildrenQNameIterator

Copyright © 2018 www.massapicom. 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.