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 class
Builder class used to create CoreExtensions instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CoreExtensions
(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.Builder
Creates a newCoreExtensions
builder instance.static CoreExtensions.Builder
newBuilder
(boolean withDefaults) Creates a newCoreExtensions
builder instance using default values or not.static CoreExtensions.Builder
newBuilder
(CoreExtensions from) Creates a newCoreExtensions
builder instance using the specified object as a basis.static CoreExtensions.Builder
newBuilder
(CoreExtensions from, boolean forceCopy) Creates a newCoreExtensions
builder instance using the specified object as a basis.static CoreExtensions
Creates a newCoreExtensions
instance.static CoreExtensions
newInstance
(boolean withDefaults) Creates a newCoreExtensions
instance using default values or not.with()
Creates a new builder with this object as the basis.withExtensions
(Collection<CoreExtension> extensions) Creates a newCoreExtensions
instance 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:
getLocation
in 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 newCoreExtensions
instance using the specified extensions.- Parameters:
extensions
- the newCollection<CoreExtension>
to use- Returns:
- a
CoreExtensions
with the specified extensions
-
newInstance
Creates a newCoreExtensions
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
CoreExtensions
- See Also:
-
newInstance
Creates a newCoreExtensions
instance 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 newCoreExtensions
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newCoreExtensions
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 newCoreExtensions
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theCoreExtensions
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newCoreExtensions
builder instance using the specified object as a basis.- Parameters:
from
- theCoreExtensions
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-