Package org.apache.ivy.core.cache
Class ArtifactOrigin
java.lang.Object
org.apache.ivy.core.cache.ArtifactOrigin
This class contains information about the origin of an artifact.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactOrigin
(Artifact artifact, boolean isLocal, String location) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the artifact that this location is pointing at.The last time the resource was checked to be up to date.Return the location of the resource (normally a url)int
hashCode()
boolean
isExists()
boolean
isLocal()
Is this resource local to this host, i.e.static final boolean
static final boolean
isUnknown
(ArtifactOrigin artifact) void
setExist
(boolean exists) void
setLastChecked
(Long lastChecked) void
setLocation
(String location) toString()
static final ArtifactOrigin
ArtifactOrigin instance used when the origin is unknown.static final ArtifactOrigin
Deprecated.because of renaming due spell check.
-
Constructor Details
-
ArtifactOrigin
Create a new instance- Parameters:
artifact
- the artifact pointed by this location. Must not benull
.isLocal
-boolean
value indicating if the resource is local (on the filesystem).location
- the location of the resource (normally a url). Must not benull
.
-
-
Method Details
-
unkwnown
Deprecated.because of renaming due spell check.- Parameters:
artifact
- ditto- Returns:
- ArtifactOrigin
-
unknown
ArtifactOrigin instance used when the origin is unknown.- Parameters:
artifact
- ditto- Returns:
- ArtifactOrigin
-
isUnknown
-
isUnknown
-
isLocal
public boolean isLocal()Is this resource local to this host, i.e. is it on the file system?- Returns:
boolean
value indicating if the resource is local.
-
getLocation
Return the location of the resource (normally a url)- Returns:
- the location of the resource
-
setLocation
-
getArtifact
Return the artifact that this location is pointing at.- Returns:
- the artifact that this location is pointing at.
-
getLastChecked
The last time the resource was checked to be up to date. Maybenull
if this information is not actually used by in some case.- Returns:
- Long timestamp
-
setLastChecked
-
isExists
public boolean isExists() -
setExist
public void setExist(boolean exists) -
toString
-
equals
-
hashCode
public int hashCode()
-