|
|||||||||||
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 |
SEP
|
Constructor Summary | |
Artifact(String base,
String filename)
Creation of a new artifact reference. |
|
Artifact(String base,
String filename,
Properties properties)
Creation of a new artifact reference. |
Method Summary | |
static Artifact |
createArtifact(String base,
String filename)
Creation of a new Artifact relative to a supplied base directory and filename. |
static Artifact |
createArtifact(String base,
String filename,
Properties properties)
Creation of a new Artifact relative to a supplied base directory and filename. |
String |
getBase()
Return the base path to the artifact. |
String |
getFilename()
Return the filename of the artifact. |
String |
getPath()
Gets the artifact path. |
String |
getProperty(String key)
Return a domain specific property associated with an artifact. |
Enumeration |
getPropertyNames()
Returns an enumeration of the property names associated to this appliance by the factory that created it. |
String |
getURL(String repository)
Gets the URL to the artifact given a base URL for a remote repository. |
String |
toString()
Returns the artifact specification String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String SEP
Constructor Detail |
public Artifact(String base, String filename)
base
- the base path to the artifactfilename
- the artifact filenamepublic Artifact(String base, String filename, Properties properties)
base
- the base path to the artifactfilename
- the artifact filenameMethod Detail |
public static Artifact createArtifact(String base, String filename)
base
- the base directory pathfilename
- the artifact filename
public static Artifact createArtifact(String base, String filename, Properties properties)
base
- the base directory pathfilename
- the artifact filenameproperties
- a properties set to attribute to the artifact
public String getProperty(String key)
key
- the property key
public Enumeration getPropertyNames()
public String getBase()
public String getFilename()
public String getPath()
public String getURL(String repository)
repository
- the base repository URL
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |