Package org.fedoraproject.xmvn.resolver
Class ResolutionRequest
- java.lang.Object
-
- org.fedoraproject.xmvn.resolver.ResolutionRequest
-
public class ResolutionRequest extends java.lang.ObjectSpecifies parameters of artifact resolution.
-
-
Field Summary
Fields Modifier and Type Field Description private Artifactartifactprivate booleanisPersistentFileNeededprivate booleanisProviderNeeded
-
Constructor Summary
Constructors Constructor Description ResolutionRequest()ResolutionRequest(Artifact artifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ArtifactgetArtifact()Get artifact which resolution is requested.inthashCode()booleanisPersistentFileNeeded()Determine whether resolved artifact file should be persistent or not.booleanisProviderNeeded()Determine whether information about artifact provider should be included in resolution result.voidsetArtifact(Artifact artifact)Set artifact which resolution is requested.voidsetPersistentFileNeeded(boolean isPersistentFileNeeded)Set whether resolved artifact file should be persistent or not.voidsetProviderNeeded(boolean isProviderNeeded)Set whether information about artifact provider should be included in resolution result.java.lang.StringtoString()
-
-
-
Field Detail
-
artifact
private Artifact artifact
-
isProviderNeeded
private boolean isProviderNeeded
-
isPersistentFileNeeded
private boolean isPersistentFileNeeded
-
-
Constructor Detail
-
ResolutionRequest
public ResolutionRequest()
-
ResolutionRequest
public ResolutionRequest(Artifact artifact)
-
-
Method Detail
-
getArtifact
public Artifact getArtifact()
Get artifact which resolution is requested.- Returns:
- artifact which resolution is requested
-
setArtifact
public void setArtifact(Artifact artifact)
Set artifact which resolution is requested.- Parameters:
artifact- artifact which resolution is requested
-
isProviderNeeded
public boolean isProviderNeeded()
Determine whether information about artifact provider should be included in resolution result.Artifact provider is name of system package providing requested artifact.
- Returns:
- whether information about artifact provider should be included in resolution result
-
setProviderNeeded
public void setProviderNeeded(boolean isProviderNeeded)
Set whether information about artifact provider should be included in resolution result.Artifact provider is name of system package providing requested artifact.
- Parameters:
isProviderNeeded- whether information about artifact provider should be included in resolution result
-
isPersistentFileNeeded
public boolean isPersistentFileNeeded()
Determine whether resolved artifact file should be persistent or not.Non-persistent files may be removed during JVM shutdown, while persistent files are not cleaned up during JVM shutdown.
- Returns:
- whether resolved artifact file should be persistent
-
setPersistentFileNeeded
public void setPersistentFileNeeded(boolean isPersistentFileNeeded)
Set whether resolved artifact file should be persistent or not.Non-persistent files may be removed during JVM shutdown, while persistent files are not cleaned up during JVM shutdown.
- Parameters:
isPersistentFileNeeded-
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-