public final class LocalMetadataResult
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
file |
private LocalMetadataRequest |
request |
private boolean |
stale |
| Constructor and Description |
|---|
LocalMetadataResult(LocalMetadataRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile()
Gets the file to the requested metadata if the metadata is available in the local repository.
|
LocalMetadataRequest |
getRequest()
Gets the request corresponding to this result.
|
boolean |
isStale()
This value indicates whether the metadata is stale and should be updated.
|
LocalMetadataResult |
setFile(java.io.File file)
Sets the file to requested metadata.
|
LocalMetadataResult |
setStale(boolean stale)
Sets whether the metadata is stale.
|
java.lang.String |
toString() |
private final LocalMetadataRequest request
private java.io.File file
private boolean stale
public LocalMetadataResult(LocalMetadataRequest request)
request - The local metadata request, must not be null.public LocalMetadataRequest getRequest()
null.public java.io.File getFile()
null.public LocalMetadataResult setFile(java.io.File file)
file - The metadata file, may be null.null.public boolean isStale()
true if the metadata is stale and should be updated, false otherwise.public LocalMetadataResult setStale(boolean stale)
stale - true if the metadata is stale and should be updated, false otherwise.null.public java.lang.String toString()
toString in class java.lang.Object