Class Property

java.lang.Object
org.codehaus.mojo.versions.api.Property

public class Property extends Object
Represents an association between properties and dependencies.
Since:
1.0-alpha-3
Author:
Stephen Connolly
  • Constructor Details

    • Property

      public Property()
      Creates a new instance without any set name
    • Property

      public Property(String name)
      Creates a new Property with the given name
      Parameters:
      name - name of the property
  • Method Details

    • getName

      public String getName()
      Returns:
      name
    • setName

      public void setName(String name)
      Parameters:
      name - name to be set
    • getVersion

      public String getVersion()
      Returns:
      version
    • setVersion

      public void setVersion(String version)
      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. If isAutoLinkDependencies() is true 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. If isAutoLinkDependencies() is true 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 is true and a property version can be entirely satisfied from the reactor and this setting is true then the reactor version will be specified irrespective of any other settings (including isBanSnapshots()).
    • setPreferReactor

      public void setPreferReactor(boolean preferReactor)
    • isBanSnapshots

      public boolean isBanSnapshots()
    • setBanSnapshots

      public void setBanSnapshots(boolean banSnapshots)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)