Class DefaultComponentDescriptorWriter

java.lang.Object
org.codehaus.plexus.metadata.DefaultComponentDescriptorWriter
All Implemented Interfaces:
ComponentDescriptorWriter

public class DefaultComponentDescriptorWriter extends Object implements ComponentDescriptorWriter
  • Field Details

    • LS

      private static final String LS
  • Constructor Details

    • DefaultComponentDescriptorWriter

      public DefaultComponentDescriptorWriter()
  • Method Details

    • writeDescriptorSet

      public void writeDescriptorSet(Writer writer, ComponentSetDescriptor componentSetDescriptor, boolean containerDescriptor) throws ComponentDescriptorWriteException, IOException
      Specified by:
      writeDescriptorSet in interface ComponentDescriptorWriter
      Throws:
      ComponentDescriptorWriteException
      IOException
    • writeComponents

      private void writeComponents(org.codehaus.plexus.util.xml.XMLWriter w, List<ComponentDescriptor<?>> componentDescriptors) throws ComponentDescriptorWriteException, org.codehaus.plexus.configuration.PlexusConfigurationException
      Throws:
      ComponentDescriptorWriteException
      org.codehaus.plexus.configuration.PlexusConfigurationException
    • writeDependencies

      public void writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, List<org.codehaus.plexus.component.repository.ComponentDependency> deps)
    • writeDependencyElement

      private void writeDependencyElement(org.codehaus.plexus.component.repository.ComponentDependency dependency, org.codehaus.plexus.util.xml.XMLWriter w)
    • writeRequirements

      private void writeRequirements(org.codehaus.plexus.util.xml.XMLWriter w, List<ComponentRequirement> requirements)
    • writeConfiguration

      private void writeConfiguration(org.codehaus.plexus.util.xml.XMLWriter w, org.codehaus.plexus.configuration.PlexusConfiguration configuration) throws ComponentDescriptorWriteException, org.codehaus.plexus.configuration.PlexusConfigurationException
      Throws:
      ComponentDescriptorWriteException
      org.codehaus.plexus.configuration.PlexusConfigurationException
    • writePlexusConfiguration

      private void writePlexusConfiguration(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, org.codehaus.plexus.configuration.PlexusConfiguration c) throws org.codehaus.plexus.configuration.PlexusConfigurationException
      Throws:
      org.codehaus.plexus.configuration.PlexusConfigurationException
    • element

      private void element(org.codehaus.plexus.util.xml.XMLWriter w, String name, String value)