|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ivy.core.cache.ArtifactOrigin
public class ArtifactOrigin
This class contains information about the origin of an artifact.
BasicResolver
,
ResolvedResource
Constructor Summary | |
---|---|
ArtifactOrigin(Artifact artifact,
boolean isLocal,
java.lang.String location)
Create a new instance |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Artifact |
getArtifact()
Return the artifact that this location is pointing at. |
java.lang.String |
getLocation()
Return the location of the resource (normally a url) |
int |
hashCode()
|
boolean |
isLocal()
Is this resource local to this host, i.e. |
static boolean |
isUnknown(ArtifactOrigin artifact)
|
static boolean |
isUnknown(java.lang.String location)
|
java.lang.String |
toString()
|
static ArtifactOrigin |
unkwnown(Artifact artifact)
ArtifactOrigin instance used when the origin is unknown. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactOrigin(Artifact artifact, boolean isLocal, java.lang.String location)
artifact
- the artifact pointed by this location. Must not be null
.isLocal
- boolean
value indicating if the resource is local (on the
filesystem).location
- the location of the resource (normally a url). Must not be null
.Method Detail |
---|
public static final ArtifactOrigin unkwnown(Artifact artifact)
public static final boolean isUnknown(ArtifactOrigin artifact)
public static final boolean isUnknown(java.lang.String location)
public boolean isLocal()
boolean
value indicating if the resource is local.public java.lang.String getLocation()
public Artifact getArtifact()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |