|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.lifecycle.model.MojoBinding
public class MojoBinding
A binding of one mojo to one lifecycle phase, possibly including configuration.
| Field Summary | |
|---|---|
static java.lang.String |
DIRECT_INVOCATION_ORIGIN
origin marker for mojos referenced directly by the user or embedded-mode consumer. |
static java.lang.String |
FORKED_DIRECT_REFERENCE_ORIGIN
origin marker for single (non-lifecycle) mojos referenced by a forked-execution annotation in another mojo. |
static java.lang.String |
INTERNAL_ORIGIN
origin marker for mojos injected into the lifecycle by Maven, to manage lifecycle state. |
static java.lang.String |
LIFECYCLE_MAPPING_ORIGIN
origin marker for mojos bound to the lifecycle by a standard (or default) lifecycle mapping. |
static java.lang.String |
POM_ORIGIN
origin marker for mojos bound to the lifecycle through POM configuration (not packaging defaults). |
| Constructor Summary | |
|---|---|
MojoBinding()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
Method equals. |
java.lang.String |
getArtifactId()
Get plugin's artifactId. |
java.lang.Object |
getConfiguration()
Get mojo binding's configuration. |
java.lang.String |
getExecutionId()
Get a name for this mojo binding, for purposes of merging configurations via inheritance, etc. |
java.lang.String |
getGoal()
Get mojo's goal name. |
java.lang.String |
getGroupId()
Get plugin's groupId. |
java.lang.String |
getModelEncoding()
|
java.lang.String |
getOrigin()
Return the origin marker set for this MojoBinding, or null. |
java.lang.String |
getOriginDescription()
Return specific information about where exactly this binding came from, if it's available. |
Phase |
getPhase()
Get the Phase instance to which this MojoBinding is bound. |
java.lang.String |
getVersion()
Get plugin's version. |
int |
hashCode()
Method hashCode. |
boolean |
isOptional()
Get marks a mojo binding as optional (not required for execution of the lifecycle). |
void |
setArtifactId(java.lang.String artifactId)
Set plugin's artifactId. |
void |
setConfiguration(java.lang.Object configuration)
Set mojo binding's configuration. |
void |
setExecutionId(java.lang.String executionId)
Set a name for this mojo binding, for purposes of merging configurations via inheritance, etc. |
void |
setGoal(java.lang.String goal)
Set mojo's goal name. |
void |
setGroupId(java.lang.String groupId)
Set plugin's groupId. |
void |
setLifecycleInfo(Phase phase)
Set the Phase instance to which this MojoBinding is bound. |
void |
setModelEncoding(java.lang.String modelEncoding)
Set an encoding used for reading/writing the model. |
void |
setOptional(boolean optional)
Set marks a mojo binding as optional (not required for execution of the lifecycle). |
void |
setOrigin(java.lang.String origin)
|
void |
setOriginDescription(java.lang.String originDescription)
|
void |
setVersion(java.lang.String version)
Set plugin's version. |
java.lang.String |
toString()
Method toString. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DIRECT_INVOCATION_ORIGIN
public static final java.lang.String FORKED_DIRECT_REFERENCE_ORIGIN
public static final java.lang.String POM_ORIGIN
public static final java.lang.String LIFECYCLE_MAPPING_ORIGIN
public static final java.lang.String INTERNAL_ORIGIN
| Constructor Detail |
|---|
public MojoBinding()
| Method Detail |
|---|
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother -
public java.lang.String getArtifactId()
public java.lang.Object getConfiguration()
public java.lang.String getExecutionId()
public java.lang.String getGoal()
public java.lang.String getGroupId()
public java.lang.String getVersion()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isOptional()
public void setArtifactId(java.lang.String artifactId)
artifactId - public void setConfiguration(java.lang.Object configuration)
configuration - public void setExecutionId(java.lang.String executionId)
executionId - public void setGoal(java.lang.String goal)
goal - public void setGroupId(java.lang.String groupId)
groupId - public void setOptional(boolean optional)
optional - public void setVersion(java.lang.String version)
version - public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
public java.lang.String getOriginDescription()
public void setOriginDescription(java.lang.String originDescription)
public Phase getPhase()
public void setLifecycleInfo(Phase phase)
public void setModelEncoding(java.lang.String modelEncoding)
modelEncoding - the encoding used when reading/writing the model.public java.lang.String getModelEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||