Package org.apache.maven.api.toolchain
Class ToolchainModel
java.lang.Object
org.apache.maven.api.toolchain.TrackableBase
org.apache.maven.api.toolchain.ToolchainModel
- All Implemented Interfaces:
- Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ToolchainModel
extends TrackableBase
implements Serializable
Definition of a toolchain instance.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ToolchainModel instances.
- 
Field SummaryFields inherited from class org.apache.maven.api.toolchain.TrackableBaseGLOBAL_LEVEL, USER_LEVEL
- 
Method SummaryModifier and TypeMethodDescriptionbooleanMethod equals.Toolchain configuration information, like location or any information that is to be retrieved.Toolchain identification information, which will be matched against project requirements.getType()inthashCode()Method hashCode.static ToolchainModel.BuilderCreates a newToolchainModelbuilder instance.static ToolchainModel.BuildernewBuilder(boolean withDefaults) Creates a newToolchainModelbuilder instance using default values or not.static ToolchainModel.BuildernewBuilder(ToolchainModel from) Creates a newToolchainModelbuilder instance using the specified object as a basis.static ToolchainModel.BuildernewBuilder(ToolchainModel from, boolean forceCopy) Creates a newToolchainModelbuilder instance using the specified object as a basis.static ToolchainModelCreates a newToolchainModelinstance.static ToolchainModelnewInstance(boolean withDefaults) Creates a newToolchainModelinstance using default values or not.with()Creates a new builder with this object as the basis.withConfiguration(XmlNode configuration) Creates a newToolchainModelinstance using the specified configuration.withProvides(Map<String, String> provides) Creates a newToolchainModelinstance using the specified provides.Creates a newToolchainModelinstance using the specified type.Methods inherited from class org.apache.maven.api.toolchain.TrackableBasegetSourceLevel, newBuilder, newBuilder, setSourceLevel
- 
Method Details- 
getTypeType of toolchain:- jdkfor JDK Standard Toolchain,
- other value for Custom Toolchain
 - Returns:
- a String
 
- 
getProvidesToolchain 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. - Returns:
- a Map<String, String>
 
- 
getConfigurationToolchain 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:
- a XmlNode
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- TrackableBase
- Returns:
- a Builder
 
- 
withTypeCreates a newToolchainModelinstance using the specified type.- Parameters:
- type- the new- Stringto use
- Returns:
- a ToolchainModelwith the specified type
 
- 
withProvidesCreates a newToolchainModelinstance using the specified provides.- Parameters:
- provides- the new- Map<String, String>to use
- Returns:
- a ToolchainModelwith the specified provides
 
- 
withConfigurationCreates a newToolchainModelinstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a ToolchainModelwith the specified configuration
 
- 
newInstanceCreates a newToolchainModelinstance. Equivalent tonewInstance( true ).- Returns:
- a new ToolchainModel
- See Also:
 
- 
newInstanceCreates a newToolchainModelinstance using default values or not. Equivalent tonewBuilder( withDefaults ).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new ToolchainModel
 
- 
newBuilderCreates a newToolchainModelbuilder instance. Equivalent tonewBuilder( true ).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newToolchainModelbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newToolchainModelbuilder instance using the specified object as a basis. Equivalent tonewBuilder( from, false ).- Parameters:
- from- the- ToolchainModelinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newToolchainModelbuilder instance using the specified object as a basis.- Parameters:
- from- the- ToolchainModelinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
hashCodepublic int hashCode()Method hashCode.
- 
equalsMethod equals.
 
-