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()Returns the property namegetValue()Returns the value of the propertyReturns the property versionbooleanWhether properties linking versions should be auto-detected or notbooleanSpecifies whether snapshots should not be consideredbooleanSays whether, whensearchReactoristrueand a property version can be entirely satisfied from the reactor and this setting istruethen the reactor version will be specified irrespective of any other settings (includingisBanSnapshots()).booleanSays whether reactor should be searched for the artifact versionvoidsetAutoLinkDependencies(boolean autoLinkDependencies) Specifies whether properties indicating dependency versions should be linked automaticallyvoidsetBanSnapshots(boolean banSnapshots) Specifies whether snapshots should not be consideredvoidsetDependencies(org.apache.maven.model.Dependency[] dependencies) Dependencies that must be available for this property.voidSets the name of the propertyvoidsetPreferReactor(boolean preferReactor) Specifies whether, whensearchReactoristrueand a property version can be entirely satisfied from the reactor and this setting istruethen the reactor version will be specified irrespective of any other settings (includingisBanSnapshots()).voidsetSearchReactor(boolean searchReactor) Specifies whether reactor should be searched for the artifact versionvoidSets the value of the propertyvoidsetVersion(String version) Sets the property version
-
Constructor Details
-
Property
public Property()Creates a new instance without any set name -
Property
-
-
Method Details
-
getName
-
setName
-
getVersion
-
setVersion
Sets the property version- Parameters:
version- version to be set
-
isAutoLinkDependencies
public boolean isAutoLinkDependencies()Whether properties linking versions should be auto-detected or not- Returns:
trueif properties linking versions should be auto-detected or not
-
setAutoLinkDependencies
public void setAutoLinkDependencies(boolean autoLinkDependencies) Specifies whether properties indicating dependency versions should be linked automatically- Parameters:
autoLinkDependencies-trueif 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()istruethen 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()istruethen these dependencies will be considered in addition to the automatically linked dependencies.- Parameters:
dependencies- to be set
-
isSearchReactor
public boolean isSearchReactor()Says whether reactor should be searched for the artifact version- Returns:
trueif reactor should be searched for the artifact version
-
setSearchReactor
public void setSearchReactor(boolean searchReactor) Specifies whether reactor should be searched for the artifact version- Parameters:
searchReactor- whether reactor should be searched for the artifact version
-
isPreferReactor
public boolean isPreferReactor()Says whether, whensearchReactoristrueand a property version can be entirely satisfied from the reactor and this setting istruethen the reactor version will be specified irrespective of any other settings (includingisBanSnapshots()).- Returns:
- provided value
-
setPreferReactor
public void setPreferReactor(boolean preferReactor) Specifies whether, whensearchReactoristrueand a property version can be entirely satisfied from the reactor and this setting istruethen the reactor version will be specified irrespective of any other settings (includingisBanSnapshots()).- Parameters:
preferReactor- required value
-
isBanSnapshots
public boolean isBanSnapshots()Specifies whether snapshots should not be considered- Returns:
trueif snapshots should not be considered
-
setBanSnapshots
public void setBanSnapshots(boolean banSnapshots) Specifies whether snapshots should not be considered- Parameters:
banSnapshots-trueif snapshots should not be considered
-
getValue
-
setValue
Sets the value of the property- Parameters:
value- property value to be set
-