Class DefaultComponentDescriptorWriter

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

public class DefaultComponentDescriptorWriter extends Object implements ComponentDescriptorWriter
Serializes a ComponentSetDescriptor.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    element(org.codehaus.plexus.util.xml.XMLWriter w, String name, String value)
     
    private void
    writeComponents(org.codehaus.plexus.util.xml.XMLWriter w, List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> componentDescriptors)
     
    private void
    writeConfiguration(org.codehaus.plexus.util.xml.XMLWriter w, org.codehaus.plexus.configuration.PlexusConfiguration configuration)
     
    void
    writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, List<org.codehaus.plexus.component.repository.ComponentDependency> deps)
     
    private void
    writeDependencyElement(org.codehaus.plexus.component.repository.ComponentDependency dependency, org.codehaus.plexus.util.xml.XMLWriter w)
     
    void
    writeDescriptorSet(Writer writer, org.codehaus.plexus.component.repository.ComponentSetDescriptor componentSetDescriptor, boolean containerDescriptor)
     
    private void
    writePlexusConfiguration(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, org.codehaus.plexus.configuration.PlexusConfiguration c)
     
    private void
    writeRequirements(org.codehaus.plexus.util.xml.XMLWriter w, List<org.codehaus.plexus.component.repository.ComponentRequirement> requirements)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LS

      private static final String LS
  • Constructor Details

    • DefaultComponentDescriptorWriter

      public DefaultComponentDescriptorWriter()
  • Method Details

    • writeDescriptorSet

      public void writeDescriptorSet(Writer writer, org.codehaus.plexus.component.repository.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<org.codehaus.plexus.component.repository.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<org.codehaus.plexus.component.repository.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)