Package org.codehaus.mojo.flatten
Class PomProperty<V>
java.lang.Object
org.codehaus.mojo.flatten.PomProperty<V>
- Type Parameters:
V- is the generic type of theproperty value.
This class reflects a property of a
POM. It contains all available
properties as constants and allows generic access to read and write
the property via a Model.- Since:
- 1.0.0-beta-4
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PomProperty<String> static final PomProperty<Build> static final PomProperty<CiManagement> static final PomProperty<List<Contributor>> static final PomProperty<List<Dependency>> static final PomProperty<DependencyManagement> static final PomProperty<String> static final PomProperty<List<Developer>> static final PomProperty<DistributionManagement> static final PomProperty<String> static final PomProperty<String> static final PomProperty<IssueManagement> static final PomProperty<List<License>> static final PomProperty<List<MailingList>> static final PomProperty<String> static final PomProperty<String> static final PomProperty<List<String>> static final PomProperty<String> static final PomProperty<Organization> static final PomProperty<String> static final PomProperty<Parent> static final PomProperty<PluginManagement> static final PomProperty<List<Repository>> static final PomProperty<File> static final PomProperty<Prerequisites> static final PomProperty<List<Profile>> static final PomProperty<Properties> static final PomProperty<Reporting> static final PomProperty<List<Repository>> static final PomProperty<Scm> static final PomProperty<String> static final PomProperty<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the value identified by thisPomPropertyfrom the givensourceModelto the giventargetModel.abstract VGeneric getter for reading aPomPropertyfrom aModel.getName()static List<PomProperty<?>> booleanbooleanabstract voidGeneric setter for writing aPomPropertyin aModel.toString()
-
Field Details
-
ARTIFACT_ID
- See Also:
-
BUILD
- See Also:
-
CI_MANAGEMENT
- See Also:
-
CONTRIBUTORS
- See Also:
-
DEPENDENCIES
- See Also:
-
DEPENDENCY_MANAGEMENT
- See Also:
-
DESCRIPTION
- See Also:
-
DEVELOPERS
- See Also:
-
DISTRIBUTION_MANAGEMENT
- See Also:
-
GROUP_ID
- See Also:
-
INCEPTION_YEAR
- See Also:
-
ISSUE_MANAGEMENT
- See Also:
-
LICENSES
- See Also:
-
MAILING_LISTS
- See Also:
-
MODEL_ENCODING
- See Also:
-
MODEL_VERSION
- See Also:
-
MODULES
- See Also:
-
NAME
- See Also:
-
ORGANIZATION
- See Also:
-
PACKAGING
- See Also:
-
PARENT
- See Also:
-
PLUGIN_MANAGEMENT
- See Also:
-
PLUGIN_REPOSITORIES
- See Also:
-
POM_FILE
- See Also:
-
PREREQUISITES
- See Also:
-
PROFILES
- See Also:
-
PROPERTIES
- See Also:
-
REPORTING
- See Also:
-
REPOSITORIES
- See Also:
-
SCM
- See Also:
-
URL
- See Also:
-
VERSION
- See Also:
-
-
Constructor Details
-
PomProperty
The constructor.- Parameters:
name- - seegetName().valueType- - seegetValueType().
-
-
Method Details
-
getName
- Returns:
- name
-
getValueType
- Returns:
Classreflecting the type of theproperty value.
-
isRequired
public boolean isRequired()- Returns:
trueif required for flattened POM,falseotherwise.
-
isElement
public boolean isElement()- Returns:
trueif this property represents an XML element of the POM representation,falseotherwise (if an internal property such asModel.getPomFile()).
-
get
Generic getter for reading aPomPropertyfrom aModel.- Parameters:
model- is theModelto read from.- Returns:
- the value of the property to read identified by this
PomProperty.
-
set
Generic setter for writing aPomPropertyin aModel.- Parameters:
model- is theModelto write to.value- is the value of the property to write identified by thisPomProperty.
-
copy
Copies the value identified by thisPomPropertyfrom the givensourceModelto the giventargetModel. -
getPomProperties
- Returns:
- an
unmodifiableListwith allproperties.
-
toString
-