Examples of nodeIterator()


Examples of groovy.util.slurpersupport.GPathResult.nodeIterator()

            GPathResult resources = (GPathResult) descriptor.getProperty("resources");
            if (!resources.isEmpty()) {
                GPathResult allResources = (GPathResult) resources.getProperty("resource");
                if (!allResources.isEmpty()) {
                    final ClassLoader classLoader = application.getClassLoader();
                    for (Iterator i = allResources.nodeIterator(); i.hasNext();) {
                        final String className = ((Node)i.next()).text();
                        try {
                            artefacts.add(classLoader.loadClass(className));
                        } catch (ClassNotFoundException e) {
                            LOG.error("Class not found loading plugin resource [" + className + "]. Resource skipped.", e);
View Full Code Here

Examples of groovy.util.slurpersupport.GPathResult.nodeIterator()

                        final String pluginClassName = pluginClass.text();
                        if (StringUtils.hasText(pluginClassName)) {
                            loadCorePlugin(pluginClassName, resource, result);
                        }
                    } else {
                        final Iterator iterator = pluginClass.nodeIterator();
                        while (iterator.hasNext()) {
                            Node node = (Node) iterator.next();
                            final String pluginClassName = node.text();
                            if (StringUtils.hasText(pluginClassName)) {
                                loadCorePlugin(pluginClassName, resource, result);
View Full Code Here

Examples of org.dom4j.Branch.nodeIterator()

    {
        if ( contextNode instanceof Branch )
        {
            Branch node = (Branch) contextNode;
           
            return node.nodeIterator();
        }

        return null;
    }
View Full Code Here

Examples of org.dom4j.Branch.nodeIterator()

    {
        Iterator result = null;
        if ( contextNode instanceof Branch )
        {
            Branch node = (Branch) contextNode;
            result = node.nodeIterator();
        }
        if (result != null) {
            return result;
        }
        return JaxenConstants.EMPTY_ITERATOR;
View Full Code Here

Examples of org.dom4j.Branch.nodeIterator()

    {
        Iterator result = null;
        if ( contextNode instanceof Branch )
        {
            Branch node = (Branch) contextNode;
            result = node.nodeIterator();
        }
        if (result != null) {
            return result;
        }
        return JaxenConstants.EMPTY_ITERATOR;
View Full Code Here

Examples of org.dom4j.Branch.nodeIterator()

    {
        if ( contextNode instanceof Branch )
        {
            Branch node = (Branch) contextNode;
           
            return node.nodeIterator();
        }

        return null;
    }
View Full Code Here

Examples of org.dom4j.Element.nodeIterator()

        }
        // Add the new children.
        for (String value : values) {
            Element childElement = element.addElement(childName);
            if (value.startsWith("<![CDATA[")) {
                Iterator it = childElement.nodeIterator();
                while (it.hasNext()) {
                    Node node = (Node) it.next();
                    if (node instanceof CDATA) {
                        childElement.remove(node);
                        break;
View Full Code Here

Examples of org.dom4j.Element.nodeIterator()

            }
            element = element.element(aPropName);
        }
        // Set the value of the property in this node.
        if (value.startsWith("<![CDATA[")) {
            Iterator it = element.nodeIterator();
            while (it.hasNext()) {
                Node node = (Node) it.next();
                if (node instanceof CDATA) {
                    element.remove(node);
                    break;
View Full Code Here

Examples of org.dom4j.Element.nodeIterator()

                        throw new DocumentException( "Duplicated tag: '" + element.getName() + "'");
                    }
                    parsed.add( "includes" );
                    java.util.List includes = new java.util.ArrayList();
                    resource.setIncludes( includes );
                    for ( Iterator j = childElement.nodeIterator(); j.hasNext(); )
                    {
                        Node n = (Node) j.next();
                        if ( n.getNodeType() != Node.ELEMENT_NODE )
                        {
                        }
View Full Code Here

Examples of org.dom4j.Element.nodeIterator()

                        throw new DocumentException( "Duplicated tag: '" + element.getName() + "'");
                    }
                    parsed.add( "includes" );
                    java.util.List includes = new java.util.ArrayList();
                    sourceModification.setIncludes( includes );
                    for ( Iterator j = childElement.nodeIterator(); j.hasNext(); )
                    {
                        Node n = (Node) j.next();
                        if ( n.getNodeType() != Node.ELEMENT_NODE )
                        {
                        }
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.