|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.tools.model.Info
Project info.
Field Summary | |
static String |
PROTOCOL
The static immutable value of the artifact protocol. |
static String |
SNAPSHOT
The static immutable element value to declare a SNAPSHOT artifact. |
Method Summary | |
static Info |
create(Home home,
String id)
Creation of a new info instance relative to a supplied home and artifact specification. |
static Info |
create(Home home,
String type,
String id)
Creation of a new info instance relative to a supplied home, type, and artifact specification. |
static Info |
create(Home home,
String group,
String name,
String version,
String type,
boolean snapshot)
Creation of a new info instance relative to a supplied set of parameters. |
boolean |
equals(Object other)
Return true if this info instance is equal to the supplied object. |
String |
getFilename()
Return the full filename of the artifact. |
String |
getGroup()
Return the name of the artifact group. |
String |
getName()
Return the name of the artifact. |
String |
getPath()
Return the path to the artifact. |
String |
getShortFilename()
Return a string corresponding to the name and version of this artifact without type information. |
String |
getSpec()
Return the artifact specification. |
String |
getSpecification(String groupSeparator,
String versionSeparator)
Return the artifact specification using the supplied group and version separators. |
String |
getType()
Return a string identifying the aritfact type. |
String |
getURI()
Return the artifact uri. |
String |
getVersion()
Return the version identifier. |
boolean |
isaSnapshot()
Return the snapshot staus of this artifact. |
String |
toString()
Return the string representation of this info instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String SNAPSHOT
public static final String PROTOCOL
Method Detail |
public static Info create(Home home, String id)
home
- the homeid
- the artiact identifier
public static Info create(Home home, String type, String id)
home
- the hometype
- the artifact typeid
- the artiact identifier
public static Info create(Home home, String group, String name, String version, String type, boolean snapshot)
home
- the homegroup
- the artifact groupname
- the artifact nameversion
- the artifact versiontype
- the artifact typesnapshot
- the artiact snapshot status
public String getGroup()
public String getName()
public String getVersion()
public boolean isaSnapshot()
public String getType()
public String getShortFilename()
public String getFilename()
public String getPath()
public String getURI()
public String getSpec()
public String getSpecification(String groupSeparator, String versionSeparator)
groupSeparator
- the group separatorversionSeparator
- the version separator
public String toString()
public boolean equals(Object other)
other
- the object to compare against this instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |