|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.taverna.raven.repository.BasicArtifact
public class BasicArtifact
Simple base artifact class, a bean with three strings for groupId, artifactId and version. Artifacts are considered as equal if all three strings match.
| Constructor Summary | |
|---|---|
BasicArtifact(Artifact other)
Construct a BasicArtifact as a copy of another artifact |
|
BasicArtifact(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
Construct a BasicArtifact from the given values |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
Compare with another object. |
boolean |
equals(java.lang.Object other)
Compare with another object. |
java.lang.String |
getArtifactId()
Get the artifact ID for this Artifact |
java.lang.String |
getGroupId()
Get the group ID for this Artifact |
java.lang.String |
getVersion()
Get the version for this Artifact, the version is not constrained to any particular format but is generally a period separated list of integers under lexicographical ordering. |
int |
hashCode()
Calculate the hash code of the artifact. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicArtifact(Artifact other)
other - Artifact whose group/artifact/version values to copy
public BasicArtifact(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
groupId - artifactId - version - | Method Detail |
|---|
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object other)
equals in interface Artifactequals in class java.lang.Objectother - Object to compare
Artifact.equals(Object),
Object.equals(Object)public java.lang.String getArtifactId()
Artifact
getArtifactId in interface Artifactpublic java.lang.String getGroupId()
Artifact
getGroupId in interface Artifactpublic java.lang.String getVersion()
Artifact
getVersion in interface Artifactpublic int hashCode()
hashCode in interface ArtifacthashCode in class java.lang.ObjectArtifact.hashCode(),
Object.hashCode()public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||