Package org.codehaus.plexus.util.xml

Examples of org.codehaus.plexus.util.xml.XMLWriter.startElement()


    writer.endElement();
    writer.startElement("bootstrap-class-path");
    for (Iterator it = uris.iterator(); it.hasNext();) {
      DependencyInformation info = (DependencyInformation) it.next();
      if ("jar".equals(info.getType())) {
        writer.startElement("path-element");
        writer.writeText(info.getFilename());
        writer.endElement();
      }
    }
    writer.endElement();
View Full Code Here


    writer.endElement();

    for (Iterator it = uris.iterator(); it.hasNext();) {
      DependencyInformation info = (DependencyInformation) it.next();
      if ("jbi-shared-library".equals(info.getType())) {
        writer.startElement("shared-library");
        writer.addAttribute("version", info.getVersion());
        writer.writeText(info.getName());
        writer.endElement();
      }
    }
View Full Code Here

      throw new JbiPluginException("Exception while opening file["
          + descriptor.getAbsolutePath() + "]", ex);
    }

    XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
    writer.startElement("jbi");
    writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
    writer.addAttribute("version", "1.0");

    writer.startElement("services");
View Full Code Here

    XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
    writer.startElement("jbi");
    writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
    writer.addAttribute("version", "1.0");

    writer.startElement("services");

    // We need to get all the namespaces into a hashmap so we
    // can get the QName output correctly
    Map namespaceMap = getNamespaceMap(provides, consumes);
View Full Code Here

    }

    // Put in the provides
    for (Iterator iterator = provides.iterator(); iterator.hasNext();) {
      Provides providesEntry = (Provides) iterator.next();
      writer.startElement("provides");
      addQNameAttribute(writer, "interface-name", providesEntry
          .getInterfaceName(), namespaceMap);
      addQNameAttribute(writer, "service-name", providesEntry
          .getServiceName(), namespaceMap);
      addStringAttribute(writer, "endpoint-name", providesEntry
View Full Code Here

    }

    // Put in the consumes
    for (Iterator iterator = consumes.iterator(); iterator.hasNext();) {
      Consumes consumesEntry = (Consumes) iterator.next();
      writer.startElement("consumes");
      addQNameAttribute(writer, "interface-name", consumesEntry
          .getInterfaceName(), namespaceMap);
      addQNameAttribute(writer, "service-name", consumesEntry
          .getServiceName(), namespaceMap);
      addStringAttribute(writer, "endpoint-name", consumesEntry
View Full Code Here

      throw new JbiPluginException("Exception while opening file["
          + descriptor.getAbsolutePath() + "]", ex);
    }

    XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
    writer.startElement("jbi");
    writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
    writer.addAttribute("version", "1.0");

    writer.startElement("shared-library");
    writer.addAttribute("class-loader-delegation", classLoaderDelegation);
View Full Code Here

    XMLWriter writer = new PrettyPrintXMLWriter(w, encoding, null);
    writer.startElement("jbi");
    writer.addAttribute("xmlns", "http://java.sun.com/xml/ns/jbi");
    writer.addAttribute("version", "1.0");

    writer.startElement("shared-library");
    writer.addAttribute("class-loader-delegation", classLoaderDelegation);
    writer.addAttribute("version", version);

    writer.startElement("identification");
    writer.startElement("name");
View Full Code Here

    writer.startElement("shared-library");
    writer.addAttribute("class-loader-delegation", classLoaderDelegation);
    writer.addAttribute("version", version);

    writer.startElement("identification");
    writer.startElement("name");
    writer.writeText(name);
    writer.endElement();
    writer.startElement("description");
    writer.writeText(description);
View Full Code Here

    writer.startElement("shared-library");
    writer.addAttribute("class-loader-delegation", classLoaderDelegation);
    writer.addAttribute("version", version);

    writer.startElement("identification");
    writer.startElement("name");
    writer.writeText(name);
    writer.endElement();
    writer.startElement("description");
    writer.writeText(description);
    writer.endElement();
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.