Package org.codehaus.plexus.util.xml

Examples of org.codehaus.plexus.util.xml.Xpp3Dom.removeChild()


        int cnt = 0;
        for ( Xpp3Dom cpEntry : dom.getChildren( "classpathentry" ) )
        {
            if ( cpEntry.getAttribute( "kind" ).equals( "lib" ) )
            {
                dom.removeChild( cnt );
                cnt--;
            }
            cnt++;
        }
View Full Code Here


        int cnt = 0;
        for ( Xpp3Dom cpEntry : dom.getChildren( "classpathentry" ) )
        {
            if ( cpEntry.getAttribute( "kind" ).equals( "lib" ) )
            {
                dom.removeChild( cnt );
                cnt--;
            }
            cnt++;
        }
View Full Code Here

        int cnt = 0;
        for ( Xpp3Dom cpEntry : dom.getChildren( "classpathentry" ) )
        {
            if ( cpEntry.getAttribute( "kind" ).equals( "lib" ) )
            {
                dom.removeChild( cnt );
                cnt--;
            }
            cnt++;
        }
View Full Code Here

      node = new Xpp3Dom(name);
      parent.addChild(node);
    }

    for (int i = node.getChildCount() - 1; i >= 0; i--) {
      node.removeChild(i);
    }

    String childName = Inflector.getInstance().singularize(name);

    for (String childVal : values) {
View Full Code Here

      modules = new Xpp3Dom("modules"); //$NON-NLS-1$
      configuration.addChild(modules);
    }
    //TODO find a more elegant way to clear the modules 
    while(modules.getChildCount() > 0) {
      modules.removeChild(0);
    }
    //Recreate the module's children, forcing the uri.
    for(EarModule earModule : earModules) {
      modules.addChild(earModule.getAsDom());
    }
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.