org.apache.geronimo.kernel.repository
Class Artifact

java.lang.Object
  extended by org.apache.geronimo.kernel.repository.Artifact
All Implemented Interfaces:
Serializable, Comparable

public class Artifact
extends Object
implements Comparable, Serializable

See Also:
Serialized Form

Field Summary
static String DEFAULT_GROUP_ID
           
 
Constructor Summary
Artifact(String groupId, String artifactId, String version, String type)
           
Artifact(String groupId, String artifactId, Version version, String type)
           
 
Method Summary
 int compareTo(Object object)
           
static Artifact create(String id)
           
 boolean equals(Object o)
           
 String getArtifactId()
           
 String getGroupId()
           
 String getType()
           
 Version getVersion()
           
 int hashCode()
           
 boolean isResolved()
           
 boolean matches(Artifact otherArtifact)
          see if this artifact matches the other artifact (which is more specific than this one)
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_GROUP_ID

public static final String DEFAULT_GROUP_ID
See Also:
Constant Field Values
Constructor Detail

Artifact

public Artifact(String groupId,
                String artifactId,
                String version,
                String type)

Artifact

public Artifact(String groupId,
                String artifactId,
                Version version,
                String type)
Method Detail

create

public static Artifact create(String id)

getGroupId

public String getGroupId()

getArtifactId

public String getArtifactId()

getVersion

public Version getVersion()

getType

public String getType()

isResolved

public boolean isResolved()

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

matches

public boolean matches(Artifact otherArtifact)
see if this artifact matches the other artifact (which is more specific than this one)

Parameters:
otherArtifact - the more specific artifact we are comparing with
Returns:
whether the other artifact is consistent with everything specified in this artifact.


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.