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
@Experimental
@Generated
@ThreadSafe
@Immutable
public class PersistedToolchains
extends TrackableBase
implements Serializable
The 
<toolchains> element is the root of the descriptor.
 The following table lists all of the possible child elements.- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create PersistedToolchains instances. - 
Field Summary
Fields inherited from class org.apache.maven.api.toolchain.TrackableBase
GLOBAL_LEVEL, USER_LEVEL - 
Method Summary
Modifier and TypeMethodDescriptionThe toolchain instance definition.static PersistedToolchains.BuilderCreates a newPersistedToolchainsbuilder instance.static PersistedToolchains.BuildernewBuilder(boolean withDefaults) Creates a newPersistedToolchainsbuilder instance using default values or not.static PersistedToolchains.BuilderCreates a newPersistedToolchainsbuilder instance using the specified object as a basis.static PersistedToolchains.BuildernewBuilder(PersistedToolchains from, boolean forceCopy) Creates a newPersistedToolchainsbuilder instance using the specified object as a basis.static PersistedToolchainsCreates a newPersistedToolchainsinstance.static PersistedToolchainsnewInstance(boolean withDefaults) Creates a newPersistedToolchainsinstance using default values or not.with()Creates a new builder with this object as the basis.withToolchains(Collection<ToolchainModel> toolchains) Creates a newPersistedToolchainsinstance using the specified toolchains.Methods inherited from class org.apache.maven.api.toolchain.TrackableBase
getSourceLevel, newBuilder, newBuilder, setSourceLevel 
- 
Method Details
- 
getNamespaceUri
 - 
getModelEncoding
 - 
getToolchains
The toolchain instance definition.- Returns:
 - a 
List<ToolchainModel> 
 - 
with
Creates a new builder with this object as the basis.- Overrides:
 within classTrackableBase- Returns:
 - a 
Builder 
 - 
withToolchains
Creates a newPersistedToolchainsinstance using the specified toolchains.- Parameters:
 toolchains- the newCollection<ToolchainModel>to use- Returns:
 - a 
PersistedToolchainswith the specified toolchains 
 - 
newInstance
Creates a newPersistedToolchainsinstance. Equivalent tonewInstance(true).- Returns:
 - a new 
PersistedToolchains - See Also:
 
 - 
newInstance
Creates a newPersistedToolchainsinstance 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 newPersistedToolchainsbuilder instance. Equivalent tonewBuilder(true).- Returns:
 - a new 
Builder - See Also:
 
 - 
newBuilder
Creates a newPersistedToolchainsbuilder instance using default values or not.- Parameters:
 withDefaults- the boolean indicating whether default values should be used- Returns:
 - a new 
Builder 
 - 
newBuilder
Creates a newPersistedToolchainsbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
 from- thePersistedToolchainsinstance to use as a basis- Returns:
 - a new 
Builder 
 - 
newBuilder
@Nonnull public static PersistedToolchains.Builder newBuilder(PersistedToolchains from, boolean forceCopy) Creates a newPersistedToolchainsbuilder instance using the specified object as a basis.- Parameters:
 from- thePersistedToolchainsinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
 - a new 
Builder 
 
 -