|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.versions.api.PropertyVersions
public class PropertyVersions
Manages a property that is associated with one or more artifacts.
| Constructor Summary | |
|---|---|
PropertyVersions(String profileId,
String name,
VersionsHelper helper)
Constructs a new PropertyVersions. |
|
| Method Summary | |
|---|---|
void |
addAssociation(Artifact artifact,
boolean usePluginRepositories)
|
void |
clearAssociations()
|
int |
compare(ArtifactVersion v1,
ArtifactVersion v2)
|
ArtifactAssocation[] |
getAssociations()
|
String |
getName()
|
String |
getProfileId()
|
ArtifactVersion[] |
getVersions(boolean includeSnapshots)
Uses the DefaultVersionsHelper to find all available versions that match all
the associations with this property. |
ArtifactVersion[] |
getVersions(Collection artifacts)
Uses the supplied Collection of Artifact instances to see if an ArtifactVersion can be provided. |
boolean |
isAssociated()
|
void |
removeAssociation(Artifact artifact,
boolean usePluginRepositories)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyVersions(String profileId,
String name,
VersionsHelper helper)
PropertyVersions.
profileId - name - The property name.helper - The DefaultVersionsHelper.| Method Detail |
|---|
public void addAssociation(Artifact artifact,
boolean usePluginRepositories)
public void removeAssociation(Artifact artifact,
boolean usePluginRepositories)
public ArtifactAssocation[] getAssociations()
public int compare(ArtifactVersion v1,
ArtifactVersion v2)
throws MojoExecutionException
MojoExecutionException
public ArtifactVersion[] getVersions(Collection artifacts)
throws MojoExecutionException
Collection of Artifact instances to see if an ArtifactVersion can be provided.
artifacts - The Collection of Artifact instances .
MojoExecutionException
public ArtifactVersion[] getVersions(boolean includeSnapshots)
throws MojoExecutionException
DefaultVersionsHelper to find all available versions that match all
the associations with this property.
includeSnapshots - Whether to include snapshot versions in our search.
MojoExecutionExceptionpublic String getName()
public String getProfileId()
public boolean isAssociated()
public String toString()
toString in class Objectpublic void clearAssociations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||