Package org.eclipse.aether.repository
Class LocalMetadataResult
- java.lang.Object
-
- org.eclipse.aether.repository.LocalMetadataResult
-
public final class LocalMetadataResult extends java.lang.ObjectA result from the local repository about the existence of metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefileprivate LocalMetadataRequestrequestprivate booleanstale
-
Constructor Summary
Constructors Constructor Description LocalMetadataResult(LocalMetadataRequest request)Creates a new result for the specified request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilegetFile()Gets the file to the requested metadata if the metadata is available in the local repository.LocalMetadataRequestgetRequest()Gets the request corresponding to this result.booleanisStale()This value indicates whether the metadata is stale and should be updated.LocalMetadataResultsetFile(java.io.File file)Sets the file to requested metadata.LocalMetadataResultsetStale(boolean stale)Sets whether the metadata is stale.java.lang.StringtoString()
-
-
-
Field Detail
-
request
private final LocalMetadataRequest request
-
file
private java.io.File file
-
stale
private boolean stale
-
-
Constructor Detail
-
LocalMetadataResult
public LocalMetadataResult(LocalMetadataRequest request)
Creates a new result for the specified request.- Parameters:
request- The local metadata request, must not benull.
-
-
Method Detail
-
getRequest
public LocalMetadataRequest getRequest()
Gets the request corresponding to this result.- Returns:
- The corresponding request, never
null.
-
getFile
public java.io.File getFile()
Gets the file to the requested metadata if the metadata is available in the local repository.- Returns:
- The file to the requested metadata or
null.
-
setFile
public LocalMetadataResult setFile(java.io.File file)
Sets the file to requested metadata.- Parameters:
file- The metadata file, may benull.- Returns:
- This result for chaining, never
null.
-
isStale
public boolean isStale()
This value indicates whether the metadata is stale and should be updated.- Returns:
trueif the metadata is stale and should be updated,falseotherwise.
-
setStale
public LocalMetadataResult setStale(boolean stale)
Sets whether the metadata is stale.- Parameters:
stale-trueif the metadata is stale and should be updated,falseotherwise.- Returns:
- This result for chaining, never
null.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-