|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.meta.ArtifactDescriptor
An abstract descriptor holds attributes about an artifact.
Field Summary | |
static String |
BUILD_KEY
|
static String |
DOMAIN_KEY
|
static String |
VERSION_KEY
|
Constructor Summary | |
ArtifactDescriptor(Attributes attributes)
Creates a new Meta descriptor. |
Method Summary | |
boolean |
equals(Object other)
Test is the supplied object is equal to this object. |
String |
getBuild()
Return the build identifier |
String |
getDomain()
Return the meta data domain value. |
protected String |
getValue(Attributes attributes,
String key)
|
String |
getVersion()
Return the meta data version |
int |
hashCode()
Return the hashcode for the object. |
String |
toString()
Return a stringified representation of the instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String DOMAIN_KEY
public static final String VERSION_KEY
public static final String BUILD_KEY
Constructor Detail |
public ArtifactDescriptor(Attributes attributes) throws MetaException
attributes
- the metadata attributes
NullPointerException
- if the supplied
attributes argument is null
MetaException
- if an attribute is inconsitentMethod Detail |
public String getDomain()
public String getVersion()
public String getBuild()
public boolean equals(Object other)
other
- the obhject to compare this object with
public int hashCode()
public String toString()
protected String getValue(Attributes attributes, String key) throws NamingException, NoSuchElementException
NamingException
NoSuchElementException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |