Class CoreExtensions
java.lang.Object
org.apache.maven.api.cli.extensions.CoreExtensions
- All Implemented Interfaces:
Serializable,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class CoreExtensions
extends Object
implements Serializable, InputLocationTracker
Extensions to load.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create CoreExtensions instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCoreExtensions(CoreExtensions.Builder builder) Constructor for this class, to be called from its subclasses andCoreExtensions.Builder. -
Method Summary
Modifier and TypeMethodDescriptionA set of build extensions to use from this project.Gets the input location that caused this model to be read.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.static CoreExtensions.BuilderCreates a newCoreExtensionsbuilder instance.static CoreExtensions.BuildernewBuilder(boolean withDefaults) Creates a newCoreExtensionsbuilder instance using default values or not.static CoreExtensions.BuildernewBuilder(CoreExtensions from) Creates a newCoreExtensionsbuilder instance using the specified object as a basis.static CoreExtensions.BuildernewBuilder(CoreExtensions from, boolean forceCopy) Creates a newCoreExtensionsbuilder instance using the specified object as a basis.static CoreExtensionsCreates a newCoreExtensionsinstance.static CoreExtensionsnewInstance(boolean withDefaults) Creates a newCoreExtensionsinstance using default values or not.with()Creates a new builder with this object as the basis.withExtensions(Collection<CoreExtension> extensions) Creates a newCoreExtensionsinstance using the specified extensions.
-
Constructor Details
-
CoreExtensions
Constructor for this class, to be called from its subclasses andCoreExtensions.Builder.- See Also:
-
-
Method Details
-
getNamespaceUri
-
getModelEncoding
-
getExtensions
A set of build extensions to use from this project.- Returns:
- a
List<CoreExtension>
-
getLocation
Gets the location of the specified field in the input source.- Specified by:
getLocationin interfaceInputLocationTracker
-
getLocationKeys
-
getLocationKeyStream
-
getImportedFrom
Gets the input location that caused this model to be read. -
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withExtensions
Creates a newCoreExtensionsinstance using the specified extensions.- Parameters:
extensions- the newCollection<CoreExtension>to use- Returns:
- a
CoreExtensionswith the specified extensions
-
newInstance
Creates a newCoreExtensionsinstance. Equivalent tonewInstance(true).- Returns:
- a new
CoreExtensions - See Also:
-
newInstance
Creates a newCoreExtensionsinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
CoreExtensions
-
newBuilder
Creates a newCoreExtensionsbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newCoreExtensionsbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newCoreExtensionsbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theCoreExtensionsinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newCoreExtensionsbuilder instance using the specified object as a basis.- Parameters:
from- theCoreExtensionsinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-