@Experimental @Generated @ThreadSafe @Immutable public class ToolchainModel extends TrackableBase implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ToolchainModel.Builder
Builder class used to create ToolchainModel instances.
|
GLOBAL_LEVEL, USER_LEVEL
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Method equals.
|
Dom |
getConfiguration()
Toolchain configuration information, like location or any information that is to be retrieved.
|
Map<String,String> |
getProvides()
Toolchain identification information, which will be matched against project requirements.
|
String |
getType()
|
int |
hashCode()
Method hashCode.
|
static ToolchainModel.Builder |
newBuilder()
Creates a new
ToolchainModel builder instance. |
static ToolchainModel.Builder |
newBuilder(boolean withDefaults)
Creates a new
ToolchainModel builder instance using default values or not. |
static ToolchainModel.Builder |
newBuilder(ToolchainModel from)
Creates a new
ToolchainModel builder instance using the specified object as a basis. |
static ToolchainModel.Builder |
newBuilder(ToolchainModel from,
boolean forceCopy)
Creates a new
ToolchainModel builder instance using the specified object as a basis. |
static ToolchainModel |
newInstance()
Creates a new
ToolchainModel instance. |
static ToolchainModel |
newInstance(boolean withDefaults)
Creates a new
ToolchainModel instance using default values or not. |
ToolchainModel.Builder |
with()
Creates a new builder with this object as the basis.
|
ToolchainModel |
withConfiguration(Dom configuration)
Creates a new
ToolchainModel instance using the specified configuration. |
ToolchainModel |
withProvides(Map<String,String> provides)
Creates a new
ToolchainModel instance using the specified provides. |
ToolchainModel |
withType(String type)
Creates a new
ToolchainModel instance using the specified type. |
getSourceLevel, newBuilder, newBuilder, setSourceLevel
public String getType()
jdk
for
JDK Standard Toolchain,String
@Nonnull public Map<String,String> getProvides()
Toolchain 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.
Map<String, String>
public Dom getConfiguration()
Toolchain 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.
Dom
@Nonnull public ToolchainModel.Builder with()
with
in class TrackableBase
Builder
@Nonnull public ToolchainModel withType(String type)
ToolchainModel
instance using the specified type.type
- the new String
to useToolchainModel
with the specified type@Nonnull public ToolchainModel withProvides(Map<String,String> provides)
ToolchainModel
instance using the specified provides.provides
- the new Map<String, String>
to useToolchainModel
with the specified provides@Nonnull public ToolchainModel withConfiguration(Dom configuration)
ToolchainModel
instance using the specified configuration.configuration
- the new Dom
to useToolchainModel
with the specified configuration@Nonnull public static ToolchainModel newInstance()
ToolchainModel
instance.
Equivalent to newInstance( true )
.ToolchainModel
newInstance(boolean)
@Nonnull public static ToolchainModel newInstance(boolean withDefaults)
ToolchainModel
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedToolchainModel
@Nonnull public static ToolchainModel.Builder newBuilder()
ToolchainModel
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static ToolchainModel.Builder newBuilder(boolean withDefaults)
ToolchainModel
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static ToolchainModel.Builder newBuilder(ToolchainModel from)
ToolchainModel
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the ToolchainModel
instance to use as a basisBuilder
@Nonnull public static ToolchainModel.Builder newBuilder(ToolchainModel from, boolean forceCopy)
ToolchainModel
builder instance using the specified object as a basis.from
- the ToolchainModel
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.