Package org.apache.maven.api.metadata
Class Plugin
java.lang.Object
org.apache.maven.api.metadata.Plugin
- All Implemented Interfaces:
Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Plugin
extends Object
implements Serializable
Mapping information for a single plugin within this group.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Plugin instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Plugin
(Plugin.Builder builder) Constructor for this class, to be called from its subclasses andPlugin.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionThe plugin artifactIdgetName()
Display name for the plugin.The plugin invocation prefix (i.e.static Plugin.Builder
Creates a newPlugin
builder instance.static Plugin.Builder
newBuilder
(boolean withDefaults) Creates a newPlugin
builder instance using default values or not.static Plugin.Builder
newBuilder
(Plugin from) Creates a newPlugin
builder instance using the specified object as a basis.static Plugin.Builder
newBuilder
(Plugin from, boolean forceCopy) Creates a newPlugin
builder instance using the specified object as a basis.static Plugin
Creates a newPlugin
instance.static Plugin
newInstance
(boolean withDefaults) Creates a newPlugin
instance using default values or not.with()
Creates a new builder with this object as the basis.withArtifactId
(String artifactId) Creates a newPlugin
instance using the specified artifactId.Creates a newPlugin
instance using the specified name.withPrefix
(String prefix) Creates a newPlugin
instance using the specified prefix.
-
Constructor Details
-
Plugin
Constructor for this class, to be called from its subclasses andPlugin.Builder
.- See Also:
-
-
Method Details
-
getName
Display name for the plugin.- Returns:
- a
String
-
getPrefix
The plugin invocation prefix (i.e. eclipse for eclipse:eclipse)- Returns:
- a
String
-
getArtifactId
The plugin artifactId- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newPlugin
instance using the specified name.- Parameters:
name
- the newString
to use- Returns:
- a
Plugin
with the specified name
-
withPrefix
Creates a newPlugin
instance using the specified prefix.- Parameters:
prefix
- the newString
to use- Returns:
- a
Plugin
with the specified prefix
-
withArtifactId
Creates a newPlugin
instance using the specified artifactId.- Parameters:
artifactId
- the newString
to use- Returns:
- a
Plugin
with the specified artifactId
-
newInstance
Creates a newPlugin
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Plugin
- See Also:
-
newInstance
Creates a newPlugin
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Plugin
-
newBuilder
Creates a newPlugin
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newPlugin
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 newPlugin
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- thePlugin
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newPlugin
builder instance using the specified object as a basis.- Parameters:
from
- thePlugin
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-