public class FlattenDescriptor
extends java.lang.Object
| Constructor and Description |
|---|
FlattenDescriptor()
The constructor.
|
FlattenDescriptor(org.codehaus.plexus.util.xml.Xpp3Dom descriptor)
The constructor.
|
public FlattenDescriptor()
public FlattenDescriptor(org.codehaus.plexus.util.xml.Xpp3Dom descriptor)
descriptor - is the raw Xpp3Dom from the MOJOs configuration.public ElementHandling getHandling(PomProperty<?> property)
ElementHandling.property - is the PomProperty such as PomProperty.NAME.ElementHandling. Will be flattened as fallback if undefined.public void setHandling(PomProperty<?> property, ElementHandling handling)
ElementHandling.property - is the PomProperty such as PomProperty.NAME.handling - the new ElementHandling.public ElementHandling getName()
ElementHandling for name.public void setName(ElementHandling name)
name - the name to set.public ElementHandling getDescription()
ElementHandling for description.public void setDescription(ElementHandling description)
description - the description to set.public ElementHandling getUrl()
ElementHandling for URL.public void setUrl(ElementHandling url)
url - the URL to set.public ElementHandling getInceptionYear()
ElementHandling for inceptionYear.public void setInceptionYear(ElementHandling inceptionYear)
inceptionYear - the inceptionYear to setpublic ElementHandling getOrganization()
ElementHandling for organization.public void setOrganization(ElementHandling organization)
organization - the organization to set.public ElementHandling getScm()
ElementHandling for SCM.public void setScm(ElementHandling scm)
scm - the scm to set.public ElementHandling getPrerequisites()
ElementHandling for prerequisites.public void setPrerequisites(ElementHandling prerequisites)
prerequisites - the prerequisites to set.public ElementHandling getDevelopers()
ElementHandling for developers.public void setDevelopers(ElementHandling developers)
developers - the developers to set.public ElementHandling getContributors()
ElementHandling for contributors.public void setContributors(ElementHandling contributors)
contributors - the contributors to set.public ElementHandling getMailingLists()
ElementHandling for mailingLists.public void setMailingLists(ElementHandling mailingLists)
mailingLists - the mailingLists to set.public ElementHandling getRepositories()
ElementHandling for repositories.public void setRepositories(ElementHandling repositories)
repositories - the repositories to set.public ElementHandling getPluginManagement()
ElementHandling for PluginConfiguration.getPluginManagement() pluginManagement}.public void setPluginManagement(ElementHandling pluginManagement)
pluginManagement - the pluginManagement to set.public ElementHandling getPluginRepositories()
ElementHandling for pluginRepositories.public void setPluginRepositories(ElementHandling pluginRepositories)
pluginRepositories - the pluginRepositories to set.public ElementHandling getIssueManagement()
ElementHandling for issueManagement.public void setIssueManagement(ElementHandling issueManagement)
issueManagement - the issueManagement to set.public ElementHandling getCiManagement()
ElementHandling for ciManagement.public void setCiManagement(ElementHandling ciManagement)
ciManagement - the ciManagement to set.public ElementHandling getDistributionManagement()
ElementHandling for distributionManagement.public void setDistributionManagement(ElementHandling distributionManagement)
distributionManagement - the distributionManagement to set.public ElementHandling getDependencyManagement()
ElementHandling for dependencyManagement.public void setDependencyManagement(ElementHandling dependencyManagement)
dependencyManagement - the dependencyManagement to set.public ElementHandling getBuild()
ElementHandling for build.public void setBuild(ElementHandling build)
build - the build to set.public ElementHandling getParent()
ElementHandling for parent.public void setParent(ElementHandling parent)
parent - the parent to set.public ElementHandling getModules()
ElementHandling for modules.public void setModules(ElementHandling modules)
modules - the modules to set.public ElementHandling getProperties()
ElementHandling for properties.public void setProperties(ElementHandling properties)
properties - the properties to set.public ElementHandling getReporting()
ElementHandling for reporting.public void setReporting(ElementHandling reporting)
reporting - the reporting to set.public ElementHandling getDependencies()
ElementHandling for dependencies.public void setDependencies(ElementHandling dependencies)
dependencies - the dependencies to set.public ElementHandling getProfiles()
ElementHandling for profiles.public void setProfiles(ElementHandling profiles)
profiles - the profiles to set.public ElementHandling getVersion()
ElementHandling for version.public void setVersion(ElementHandling version)
version - the version to set.public FlattenDescriptor merge(FlattenDescriptor descriptor)
FlattenDescriptor with the ElementHandlings merged from this and the
given FlattenDescriptor.descriptor - is the FlattenDescriptor to merge with this one.FlattenDescriptor.public boolean isEmpty()
true if none of the properties has been set explicitly, false otherwise.Copyright © 2014-2020 FuseSource, Corp.. All Rights Reserved.