|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.Artifact
Defintion of a artifact that maintains a relative url to some nominally remote file together with a set of assigned properties.
Field Summary | |
static String |
GROUP_KEY
|
static String |
NAME_KEY
|
static String |
SEP
|
static String |
TYPE_KEY
|
static String |
VERSION_KEY
|
Method Summary | |
static Artifact |
createArtifact(String spec)
|
static Artifact |
createArtifact(String group,
String name,
String version)
|
static Artifact |
createArtifact(String group,
String name,
String version,
String type)
|
String |
getBase()
Return the base path to the artifact. |
String |
getFilename()
Return the filename of the artifact. |
String |
getGroup()
Return the group identifier for this artifact. |
String |
getName()
Return the name of this artifact. |
String |
getPath()
Gets the artifact path. |
String |
getSpecification()
Gets the artifact specification for this Artifact in the form |
String |
getType()
Return the artifact type. |
String |
getURL()
Gets the relative artifact URL. |
String |
getURL(String host)
Gets the URL to the artifact given a base URL for a remote repository. |
String |
getVersion()
Return the artifact version. |
String |
toString()
Return a stringified representation of the instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String SEP
public static final String GROUP_KEY
public static final String NAME_KEY
public static final String VERSION_KEY
public static final String TYPE_KEY
Method Detail |
public static Artifact createArtifact(String spec)
public static Artifact createArtifact(String group, String name, String version)
public static Artifact createArtifact(String group, String name, String version, String type)
public String getURL()
public String getURL(String host)
host
- the base repository URL
public String getGroup()
public String getName()
public String getType()
public String getVersion()
public String getSpecification()
public String getBase()
public String getFilename()
public String getPath()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |