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 TypeMethodDescriptionbooleanReturn 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)inthashCode()booleanisExists()booleanisLocal()Is this resource local to this host, i.e.static final booleanstatic final booleanisUnknown(ArtifactOrigin artifact) voidsetExist(boolean exists) voidsetLastChecked(Long lastChecked) voidsetLocation(String location) toString()static final ArtifactOriginArtifactOrigin instance used when the origin is unknown.static final ArtifactOriginDeprecated.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-booleanvalue 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:
booleanvalue 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. Maybenullif 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
-