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.StringLS
-
Constructor Summary
Constructors Constructor Description DefaultComponentDescriptorWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidelement(org.codehaus.plexus.util.xml.XMLWriter w, java.lang.String name, java.lang.String value)private voidwriteComponents(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDescriptor<?>> componentDescriptors)private voidwriteConfiguration(org.codehaus.plexus.util.xml.XMLWriter w, PlexusConfiguration configuration)voidwriteDependencies(org.codehaus.plexus.util.xml.XMLWriter w, java.util.List<ComponentDependency> deps)private voidwriteDependencyElement(ComponentDependency dependency, org.codehaus.plexus.util.xml.XMLWriter w)voidwriteDescriptorSet(java.io.Writer writer, ComponentSetDescriptor componentSetDescriptor, boolean containerDescriptor)private voidwritePlexusConfiguration(org.codehaus.plexus.util.xml.XMLWriter xmlWriter, PlexusConfiguration c)private voidwriteRequirements(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:
writeDescriptorSetin interfaceComponentDescriptorWriter- Throws:
ComponentDescriptorWriteExceptionjava.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)
-
-