org.apache.ivy.core.cache
public class ArtifactOrigin extends Object
See Also: BasicResolver ResolvedResource
| Constructor Summary | |
|---|---|
| ArtifactOrigin(Artifact artifact, boolean isLocal, String location)
Create a new instance
| |
| Method Summary | |
|---|---|
| boolean | equals(Object o) |
| Artifact | getArtifact()
Return the artifact that this location is pointing at.
|
| String | getLocation()
Return the location of the resource (normally a url)
|
| int | hashCode() |
| boolean | isLocal()
Is this resource local to this host, i.e. is it on the file system?
|
| static boolean | isUnknown(ArtifactOrigin artifact) |
| static boolean | isUnknown(String location) |
| String | toString() |
| static ArtifactOrigin | unkwnown(Artifact artifact)
ArtifactOrigin instance used when the origin is unknown. |
Parameters: 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.
Returns: the artifact that this location is pointing at.
Returns: the location of the resource
Returns: boolean value indicating if the resource is local.