Package org.codehaus.plexus.metadata
Class DefaultComponentDescriptorWriter
- java.lang.Object
-
- org.codehaus.plexus.metadata.DefaultComponentDescriptorWriter
-
- All Implemented Interfaces:
ComponentDescriptorWriter
public class DefaultComponentDescriptorWriter extends java.lang.Object implements ComponentDescriptorWriter
Serializes aComponentSetDescriptor
.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
LS
-
Constructor Summary
Constructors Constructor Description DefaultComponentDescriptorWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
element(org.codehaus.plexus.util.xml.XMLWriter w, java.lang.String name, java.lang.String value)
private void
writeComponents(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDescriptor<?>> componentDescriptors)
private void
writeConfiguration(org.codehaus.plexus.util.xml.XMLWriter w, PlexusConfiguration configuration)
void
writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDependency> deps)
private void
writeDependencyElement(ComponentDependency dependency, org.codehaus.plexus.util.xml.XMLWriter w)
void
writeDescriptorSet(java.io.Writer writer, ComponentSetDescriptor componentSetDescriptor, boolean containerDescriptor)
private void
writePlexusConfiguration(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, PlexusConfiguration c)
private void
writeRequirements(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentRequirement> requirements)
-
-
-
Method Detail
-
writeDescriptorSet
public void writeDescriptorSet(java.io.Writer writer, ComponentSetDescriptor componentSetDescriptor, boolean containerDescriptor) throws ComponentDescriptorWriteException, java.io.IOException
- Specified by:
writeDescriptorSet
in interfaceComponentDescriptorWriter
- Throws:
ComponentDescriptorWriteException
java.io.IOException
-
writeComponents
private void writeComponents(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDescriptor<?>> componentDescriptors) throws ComponentDescriptorWriteException, PlexusConfigurationException
-
writeDependencies
public void writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDependency> deps)
-
writeDependencyElement
private void writeDependencyElement(ComponentDependency dependency, org.codehaus.plexus.util.xml.XMLWriter w)
-
writeRequirements
private void writeRequirements(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentRequirement> requirements)
-
writeConfiguration
private void writeConfiguration(org.codehaus.plexus.util.xml.XMLWriter w, PlexusConfiguration configuration) throws ComponentDescriptorWriteException, PlexusConfigurationException
-
writePlexusConfiguration
private void writePlexusConfiguration(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, PlexusConfiguration c) throws PlexusConfigurationException
- Throws:
PlexusConfigurationException
-
element
private void element(org.codehaus.plexus.util.xml.XMLWriter w, java.lang.String name, java.lang.String value)
-
-