Package org.apache.maven.api.toolchain
Class PersistedToolchains
java.lang.Object
org.apache.maven.api.toolchain.TrackableBase
org.apache.maven.api.toolchain.PersistedToolchains
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PersistedToolchains
extends TrackableBase
implements Serializable, InputLocationTracker
The
<toolchains>
element is the root of the descriptor.
The following table lists all the possible child elements.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class used to create PersistedToolchains instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor for this class, to be called from its subclasses andPersistedToolchains.Builder
. -
Method Summary
Modifier and TypeMethodDescriptiongetLocation
(Object key) Gets the ___location of the specified field in the input source.Gets the keys of the locations of the input source.The toolchain instance definition.static PersistedToolchains.Builder
Creates a newPersistedToolchains
builder instance.static PersistedToolchains.Builder
newBuilder
(boolean withDefaults) Creates a newPersistedToolchains
builder instance using default values or not.static PersistedToolchains.Builder
Creates a newPersistedToolchains
builder instance using the specified object as a basis.static PersistedToolchains.Builder
newBuilder
(PersistedToolchains from, boolean forceCopy) Creates a newPersistedToolchains
builder instance using the specified object as a basis.static PersistedToolchains
Creates a newPersistedToolchains
instance.static PersistedToolchains
newInstance
(boolean withDefaults) Creates a newPersistedToolchains
instance using default values or not.with()
Creates a new builder with this object as the basis.withToolchains
(Collection<ToolchainModel> toolchains) Creates a newPersistedToolchains
instance using the specified toolchains.Methods inherited from class org.apache.maven.api.toolchain.TrackableBase
getImportedFrom, newBuilder, newBuilder
-
Constructor Details
-
PersistedToolchains
Constructor for this class, to be called from its subclasses andPersistedToolchains.Builder
.- See Also:
-
-
Method Details
-
getNamespaceUri
-
getModelEncoding
-
getToolchains
The toolchain instance definition.- Returns:
- a
List<ToolchainModel>
-
getLocation
Gets the ___location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
- Overrides:
getLocation
in classTrackableBase
-
getLocationKeys
Gets the keys of the locations of the input source.- Overrides:
getLocationKeys
in classTrackableBase
-
with
Creates a new builder with this object as the basis.- Overrides:
with
in classTrackableBase
- Returns:
- a
Builder
-
withToolchains
Creates a newPersistedToolchains
instance using the specified toolchains.- Parameters:
toolchains
- the newCollection<ToolchainModel>
to use- Returns:
- a
PersistedToolchains
with the specified toolchains
-
newInstance
Creates a newPersistedToolchains
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
PersistedToolchains
- See Also:
-
newInstance
Creates a newPersistedToolchains
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
PersistedToolchains
-
newBuilder
Creates a newPersistedToolchains
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newPersistedToolchains
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPersistedToolchains
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- thePersistedToolchains
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static PersistedToolchains.Builder newBuilder(PersistedToolchains from, boolean forceCopy) Creates a newPersistedToolchains
builder instance using the specified object as a basis.- Parameters:
from
- thePersistedToolchains
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-