Package org.apache.maven.api.model
Class Mixin
java.lang.Object
org.apache.maven.api.model.Parent
org.apache.maven.api.model.Mixin
- All Implemented Interfaces:
Serializable,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Mixin
extends Parent
implements Serializable, InputLocationTracker
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Mixin instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMixin(Mixin.Builder builder) Constructor for this class, to be called from its subclasses andMixin.Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic Mixin.BuilderCreates a newMixinbuilder instance.static Mixin.BuildernewBuilder(boolean withDefaults) Creates a newMixinbuilder instance using default values or not.static Mixin.BuildernewBuilder(Mixin from) Creates a newMixinbuilder instance using the specified object as a basis.static Mixin.BuildernewBuilder(Mixin from, boolean forceCopy) Creates a newMixinbuilder instance using the specified object as a basis.static MixinCreates a newMixininstance.static MixinnewInstance(boolean withDefaults) Creates a newMixininstance using default values or not.with()Creates a new builder with this object as the basis.withArtifactId(String artifactId) Creates a newMixininstance using the specified artifactId.withClassifier(String classifier) Creates a newMixininstance using the specified classifier.withExtension(String extension) Creates a newMixininstance using the specified extension.withGroupId(String groupId) Creates a newMixininstance using the specified groupId.withRelativePath(String relativePath) Creates a newMixininstance using the specified relativePath.withVersion(String version) Creates a newMixininstance using the specified version.Methods inherited from class org.apache.maven.api.model.Parent
getArtifactId, getGroupId, getId, getImportedFrom, getLocation, getLocationKeys, getLocationKeyStream, getRelativePath, getVersion, newBuilder, newBuilder, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTracker
getImportedFrom, getLocation
-
Constructor Details
-
Mixin
Constructor for this class, to be called from its subclasses andMixin.Builder.- See Also:
-
-
Method Details
-
getClassifier
- Returns:
- a
String
-
getExtension
- Returns:
- a
String
-
with
Creates a new builder with this object as the basis. -
withGroupId
Creates a newMixininstance using the specified groupId.- Overrides:
withGroupIdin classParent- Parameters:
groupId- the newStringto use- Returns:
- a
Mixinwith the specified groupId
-
withArtifactId
Creates a newMixininstance using the specified artifactId.- Overrides:
withArtifactIdin classParent- Parameters:
artifactId- the newStringto use- Returns:
- a
Mixinwith the specified artifactId
-
withVersion
Creates a newMixininstance using the specified version.- Overrides:
withVersionin classParent- Parameters:
version- the newStringto use- Returns:
- a
Mixinwith the specified version
-
withRelativePath
Creates a newMixininstance using the specified relativePath.- Overrides:
withRelativePathin classParent- Parameters:
relativePath- the newStringto use- Returns:
- a
Mixinwith the specified relativePath
-
withClassifier
Creates a newMixininstance using the specified classifier.- Parameters:
classifier- the newStringto use- Returns:
- a
Mixinwith the specified classifier
-
withExtension
Creates a newMixininstance using the specified extension.- Parameters:
extension- the newStringto use- Returns:
- a
Mixinwith the specified extension
-
newInstance
Creates a newMixininstance. Equivalent tonewInstance(true).- Returns:
- a new
Mixin - See Also:
-
newInstance
Creates a newMixininstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Mixin
-
newBuilder
Creates a newMixinbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newMixinbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newMixinbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theMixininstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newMixinbuilder instance using the specified object as a basis.- Parameters:
from- theMixininstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-