Class ToolchainModel
- java.lang.Object
-
- org.apache.maven.toolchain.model.TrackableBase
-
- org.apache.maven.toolchain.model.ToolchainModel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ToolchainModel extends TrackableBase implements java.io.Serializable, java.lang.Cloneable
Definition of a toolchain instance.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.maven.toolchain.model.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description ToolchainModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProvide(java.lang.String key, java.lang.String value)Method addProvide.ToolchainModelclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.ObjectgetConfiguration()Getjava.util.PropertiesgetProvides()Method getProvides.java.lang.StringgetType()inthashCode()Method hashCode.voidsetConfiguration(java.lang.Object configuration)SetvoidsetProvides(java.util.Properties provides)SetvoidsetType(java.lang.String type)-
Methods inherited from class org.apache.maven.toolchain.model.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Method Detail
-
addProvide
public void addProvide(java.lang.String key, java.lang.String value)Method addProvide.- Parameters:
key- a key object.value- a value object.
-
clone
public ToolchainModel clone()
Method clone.- Overrides:
clonein classTrackableBase- Returns:
- ToolchainModel
-
getConfiguration
public java.lang.Object getConfiguration()
GetToolchain configuration information, like location or any information that is to be retrieved.
Actual content structure is completely open: each toolchain type will define its own format and semantics.
In general, this is a properties format:
<name>value</name>with per-toolchain defined properties names.- Returns:
- Object
-
getProvides
public java.util.Properties getProvides()
Method getProvides.- Returns:
- Properties
-
getType
public java.lang.String getType()
Get type of toolchain:jdkfor JDK Standard Toolchain,- other value for Custom Toolchain
- Returns:
- String
-
setConfiguration
public void setConfiguration(java.lang.Object configuration)
SetToolchain configuration information, like location or any information that is to be retrieved.
Actual content structure is completely open: each toolchain type will define its own format and semantics.
In general, this is a properties format:
<name>value</name>with per-toolchain defined properties names.- Parameters:
configuration- a configuration object.
-
setProvides
public void setProvides(java.util.Properties provides)
SetToolchain identification information, which will be matched against project requirements.
For Maven 2.0.9 to 3.2.3, the actual content structure was completely open: each toolchain type would define its own format and semantics. In general, this was a properties format.
Since Maven 3.2.4, the type for this field has been changed to Properties to match the de-facto format.
Each toolchain defines its own properties names and semantics.
- Parameters:
provides- a provides object.
-
setType
public void setType(java.lang.String type)
Set type of toolchain:jdkfor JDK Standard Toolchain,- other value for Custom Toolchain
- Parameters:
type- a type object.
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other-- Returns:
- boolean
-
-