Package org.codehaus.mojo.versions.api
Class Property
java.lang.Object
org.codehaus.mojo.versions.api.Property
Represents an association between properties and dependencies.
- Since:
- 1.0-alpha-3
- Author:
- Stephen Connolly
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.model.Dependency[]
Dependencies that must be available for this property.getName()
getValue()
boolean
boolean
boolean
boolean
void
setAutoLinkDependencies
(boolean autoLinkDependencies) void
setBanSnapshots
(boolean banSnapshots) void
setDependencies
(org.apache.maven.model.Dependency[] dependencies) Dependencies that must be available for this property.void
void
setPreferReactor
(boolean preferReactor) void
setSearchReactor
(boolean searchReactor) void
void
setVersion
(String version)
-
Constructor Details
-
Property
public Property()Creates a new instance without any set name -
Property
Creates a newProperty
with the given name- Parameters:
name
- name of the property
-
-
Method Details
-
getName
- Returns:
- name
-
setName
- Parameters:
name
- name to be set
-
getVersion
- Returns:
- version
-
setVersion
- Parameters:
version
- version to be set
-
isAutoLinkDependencies
public boolean isAutoLinkDependencies()- Returns:
- if properties linking versions should be auto-detected or not
-
setAutoLinkDependencies
public void setAutoLinkDependencies(boolean autoLinkDependencies) - Parameters:
autoLinkDependencies
- whether properties indicating dependency versions should be linked automatically
-
getDependencies
public org.apache.maven.model.Dependency[] getDependencies()Dependencies that must be available for this property. IfisAutoLinkDependencies()
istrue
then these dependencies will be considered in addition to the automatically linked dependencies.- Returns:
- dependencies
-
setDependencies
public void setDependencies(org.apache.maven.model.Dependency[] dependencies) Dependencies that must be available for this property. IfisAutoLinkDependencies()
istrue
then these dependencies will be considered in addition to the automatically linked dependencies.- Parameters:
dependencies
- to be set
-
isSearchReactor
public boolean isSearchReactor()- Returns:
- whether reactor should be searched for the artifact version
-
setSearchReactor
public void setSearchReactor(boolean searchReactor) - Parameters:
searchReactor
- whether reactor should be searched for the artifact version
-
isPreferReactor
public boolean isPreferReactor()- Returns:
- when
searchReactor
istrue
and a property version can be entirely satisfied from the reactor and this setting istrue
then the reactor version will be specified irrespective of any other settings (includingisBanSnapshots()
).
-
setPreferReactor
public void setPreferReactor(boolean preferReactor) -
isBanSnapshots
public boolean isBanSnapshots() -
setBanSnapshots
public void setBanSnapshots(boolean banSnapshots) -
getValue
-
setValue
-