org.apache.geronimo.kernel.repository
Class Artifact
java.lang.Object
org.apache.geronimo.kernel.repository.Artifact
- All Implemented Interfaces:
- Serializable, Comparable
public class Artifact
- extends Object
- implements Comparable, Serializable
- See Also:
- Serialized Form
DEFAULT_GROUP_ID
public static final String DEFAULT_GROUP_ID
- See Also:
- Constant Field Values
Artifact
public Artifact(String groupId,
String artifactId,
String version,
String type)
Artifact
public Artifact(String groupId,
String artifactId,
Version version,
String type)
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 © 2006 Apache Software Foundation. All Rights Reserved.