public class Artifact extends Object implements Comparable<Artifact>
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_START_ORDER
This key might be used by bundles to define the start order.
|
| Constructor and Description |
|---|
Artifact(ArtifactId id)
Construct a new artifact
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Artifact o) |
boolean |
equals(Object obj) |
ArtifactId |
getId()
Get the id of the artifact.
|
KeyValueMap |
getMetadata()
Get the metadata of the artifact.
|
int |
getStartOrder()
Get the start order of the artifact.
|
int |
hashCode() |
void |
setStartOrder(int startOrder)
Set the start order of the artifact
This is a convenience method which sets the value of the property named
#KEY_START_ORDER from the metadata. |
String |
toString() |
public static final String KEY_START_ORDER
public Artifact(ArtifactId id)
id - The id of the artifact.IllegalArgumentException - If id is null.public ArtifactId getId()
public KeyValueMap getMetadata()
public int getStartOrder()
#KEY_START_ORDER from the metadata.0 is returned.NumberFormatException - If the stored metadata is not a numberIllegalStateException - If the stored metadata is a negative numberpublic void setStartOrder(int startOrder)
#KEY_START_ORDER from the metadata.startOrder - The start orderIllegalArgumentException - If the number is negativepublic int compareTo(Artifact o)
compareTo in interface Comparable<Artifact>Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.