Package org.apache.maven.model.io.xpp3
Class MavenXpp3Writer
java.lang.Object
org.apache.maven.model.io.xpp3.MavenXpp3Writer
Class MavenXpp3Writer.
- Version:
- $Revision$ $Date$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setFileComment
(String fileComment) Method setFileComment.void
write
(OutputStream stream, Model model) Method write.void
Method write.private void
writeActivation
(Activation activation, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeActivation.private void
writeActivationFile
(ActivationFile activationFile, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeActivationFile.private void
writeActivationOS
(ActivationOS activationOS, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeActivationOS.private void
writeActivationProperty
(ActivationProperty activationProperty, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeActivationProperty.private void
writeBuild
(Build build, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeBuild.private void
writeBuildBase
(BuildBase buildBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeBuildBase.private void
writeCiManagement
(CiManagement ciManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeCiManagement.private void
writeConfigurationContainer
(ConfigurationContainer configurationContainer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeConfigurationContainer.private void
writeContributor
(Contributor contributor, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeContributor.private void
writeDependency
(Dependency dependency, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeDependency.private void
writeDependencyManagement
(DependencyManagement dependencyManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeDependencyManagement.private void
writeDeploymentRepository
(DeploymentRepository deploymentRepository, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeDeploymentRepository.private void
writeDeveloper
(Developer developer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeDeveloper.private void
writeDistributionManagement
(DistributionManagement distributionManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeDistributionManagement.private void
writeExclusion
(Exclusion exclusion, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeExclusion.private void
writeExtension
(Extension extension, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeExtension.private void
writeFileSet
(FileSet fileSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeFileSet.private void
writeIssueManagement
(IssueManagement issueManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeIssueManagement.private void
writeLicense
(License license, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeLicense.private void
writeMailingList
(MailingList mailingList, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeMailingList.private void
writeModel
(Model model, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeModel.private void
writeModelBase
(ModelBase modelBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeModelBase.private void
writeNotifier
(Notifier notifier, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeNotifier.private void
writeOrganization
(Organization organization, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeOrganization.private void
writeParent
(Parent parent, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeParent.private void
writePatternSet
(PatternSet patternSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePatternSet.private void
writePlugin
(Plugin plugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePlugin.private void
writePluginConfiguration
(PluginConfiguration pluginConfiguration, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePluginConfiguration.private void
writePluginContainer
(PluginContainer pluginContainer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePluginContainer.private void
writePluginExecution
(PluginExecution pluginExecution, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePluginExecution.private void
writePluginManagement
(PluginManagement pluginManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePluginManagement.private void
writePrerequisites
(Prerequisites prerequisites, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writePrerequisites.private void
writeProfile
(Profile profile, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeProfile.private void
writeRelocation
(Relocation relocation, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeRelocation.private void
writeReporting
(Reporting reporting, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeReporting.private void
writeReportPlugin
(ReportPlugin reportPlugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeReportPlugin.private void
writeReportSet
(ReportSet reportSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeReportSet.private void
writeRepository
(Repository repository, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeRepository.private void
writeRepositoryBase
(RepositoryBase repositoryBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeRepositoryBase.private void
writeRepositoryPolicy
(RepositoryPolicy repositoryPolicy, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeRepositoryPolicy.private void
writeResource
(Resource resource, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) Method writeResource.private void
Method writeScm.private void
Method writeSite.
-
Field Details
-
NAMESPACE
Field NAMESPACE. -
fileComment
Field fileComment.
-
-
Constructor Details
-
MavenXpp3Writer
public MavenXpp3Writer()
-
-
Method Details
-
setFileComment
Method setFileComment.- Parameters:
fileComment
- a fileComment object.
-
write
Method write.- Parameters:
writer
- a writer object.model
- a model object.- Throws:
IOException
- java.io.IOException if any.
-
write
Method write.- Parameters:
stream
- a stream object.model
- a model object.- Throws:
IOException
- java.io.IOException if any.
-
writeActivation
private void writeActivation(Activation activation, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeActivation.- Parameters:
activation
- a activation object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeActivationFile
private void writeActivationFile(ActivationFile activationFile, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeActivationFile.- Parameters:
activationFile
- a activationFile object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeActivationOS
private void writeActivationOS(ActivationOS activationOS, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeActivationOS.- Parameters:
activationOS
- a activationOS object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeActivationProperty
private void writeActivationProperty(ActivationProperty activationProperty, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeActivationProperty.- Parameters:
activationProperty
- a activationProperty object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeBuild
private void writeBuild(Build build, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeBuild.- Parameters:
build
- a build object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeBuildBase
private void writeBuildBase(BuildBase buildBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeBuildBase.- Parameters:
buildBase
- a buildBase object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeCiManagement
private void writeCiManagement(CiManagement ciManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeCiManagement.- Parameters:
ciManagement
- a ciManagement object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeConfigurationContainer
private void writeConfigurationContainer(ConfigurationContainer configurationContainer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeConfigurationContainer.- Parameters:
configurationContainer
- a configurationContainer object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeContributor
private void writeContributor(Contributor contributor, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeContributor.- Parameters:
contributor
- a contributor object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeDependency
private void writeDependency(Dependency dependency, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeDependency.- Parameters:
dependency
- a dependency object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeDependencyManagement
private void writeDependencyManagement(DependencyManagement dependencyManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeDependencyManagement.- Parameters:
dependencyManagement
- a dependencyManagement object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeDeploymentRepository
private void writeDeploymentRepository(DeploymentRepository deploymentRepository, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeDeploymentRepository.- Parameters:
deploymentRepository
- a deploymentRepository object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeDeveloper
private void writeDeveloper(Developer developer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeDeveloper.- Parameters:
developer
- a developer object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeDistributionManagement
private void writeDistributionManagement(DistributionManagement distributionManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeDistributionManagement.- Parameters:
distributionManagement
- a distributionManagement object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeExclusion
private void writeExclusion(Exclusion exclusion, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeExclusion.- Parameters:
exclusion
- a exclusion object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeExtension
private void writeExtension(Extension extension, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeExtension.- Parameters:
extension
- a extension object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeFileSet
private void writeFileSet(FileSet fileSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeFileSet.- Parameters:
fileSet
- a fileSet object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeIssueManagement
private void writeIssueManagement(IssueManagement issueManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeIssueManagement.- Parameters:
issueManagement
- a issueManagement object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeLicense
private void writeLicense(License license, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeLicense.- Parameters:
license
- a license object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeMailingList
private void writeMailingList(MailingList mailingList, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeMailingList.- Parameters:
mailingList
- a mailingList object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeModel
private void writeModel(Model model, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeModel.- Parameters:
model
- a model object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeModelBase
private void writeModelBase(ModelBase modelBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeModelBase.- Parameters:
modelBase
- a modelBase object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeNotifier
private void writeNotifier(Notifier notifier, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeNotifier.- Parameters:
notifier
- a notifier object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeOrganization
private void writeOrganization(Organization organization, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeOrganization.- Parameters:
organization
- a organization object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeParent
private void writeParent(Parent parent, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeParent.- Parameters:
parent
- a parent object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePatternSet
private void writePatternSet(PatternSet patternSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePatternSet.- Parameters:
patternSet
- a patternSet object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePlugin
private void writePlugin(Plugin plugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePlugin.- Parameters:
plugin
- a plugin object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePluginConfiguration
private void writePluginConfiguration(PluginConfiguration pluginConfiguration, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePluginConfiguration.- Parameters:
pluginConfiguration
- a pluginConfiguration object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePluginContainer
private void writePluginContainer(PluginContainer pluginContainer, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePluginContainer.- Parameters:
pluginContainer
- a pluginContainer object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePluginExecution
private void writePluginExecution(PluginExecution pluginExecution, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePluginExecution.- Parameters:
pluginExecution
- a pluginExecution object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePluginManagement
private void writePluginManagement(PluginManagement pluginManagement, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePluginManagement.- Parameters:
pluginManagement
- a pluginManagement object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writePrerequisites
private void writePrerequisites(Prerequisites prerequisites, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writePrerequisites.- Parameters:
prerequisites
- a prerequisites object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeProfile
private void writeProfile(Profile profile, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeProfile.- Parameters:
profile
- a profile object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeRelocation
private void writeRelocation(Relocation relocation, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeRelocation.- Parameters:
relocation
- a relocation object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeReportPlugin
private void writeReportPlugin(ReportPlugin reportPlugin, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeReportPlugin.- Parameters:
reportPlugin
- a reportPlugin object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeReportSet
private void writeReportSet(ReportSet reportSet, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeReportSet.- Parameters:
reportSet
- a reportSet object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeReporting
private void writeReporting(Reporting reporting, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeReporting.- Parameters:
reporting
- a reporting object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeRepository
private void writeRepository(Repository repository, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeRepository.- Parameters:
repository
- a repository object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeRepositoryBase
private void writeRepositoryBase(RepositoryBase repositoryBase, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeRepositoryBase.- Parameters:
repositoryBase
- a repositoryBase object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeRepositoryPolicy
private void writeRepositoryPolicy(RepositoryPolicy repositoryPolicy, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeRepositoryPolicy.- Parameters:
repositoryPolicy
- a repositoryPolicy object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeResource
private void writeResource(Resource resource, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeResource.- Parameters:
resource
- a resource object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeScm
private void writeScm(Scm scm, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeScm.- Parameters:
scm
- a scm object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-
writeSite
private void writeSite(Site site, String tagName, org.codehaus.plexus.util.xml.pull.XmlSerializer serializer) throws IOException Method writeSite.- Parameters:
site
- a site object.serializer
- a serializer object.tagName
- a tagName object.- Throws:
IOException
- java.io.IOException if any.
-