public final class MetadataResult extends Object
| Constructor and Description |
|---|
MetadataResult(MetadataRequest request)
Creates a new result for the specified request.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
Gets the exception that occurred while resolving the metadata.
|
Metadata |
getMetadata()
Gets the resolved metadata (if any).
|
MetadataRequest |
getRequest()
Gets the resolution request that was made.
|
boolean |
isMissing()
Indicates whether the requested metadata is not present in the remote repository.
|
boolean |
isResolved()
Indicates whether the requested metadata was resolved.
|
boolean |
isUpdated()
Indicates whether the metadata was actually fetched from the remote repository or resolved from the local cache.
|
MetadataResult |
setException(Exception exception)
Records the specified exception while resolving the metadata.
|
MetadataResult |
setMetadata(Metadata metadata)
Sets the resolved metadata.
|
MetadataResult |
setUpdated(boolean updated)
Sets the updated flag for the metadata.
|
String |
toString() |
public MetadataResult(MetadataRequest request)
request - The resolution request, must not be null.public MetadataRequest getRequest()
null.public Metadata getMetadata()
null if the resolution failed.public MetadataResult setMetadata(Metadata metadata)
metadata - The resolved metadata, may be null if the resolution failed.null.public MetadataResult setException(Exception exception)
exception - The exception to record, may be null.null.public Exception getException()
null if none.public MetadataResult setUpdated(boolean updated)
updated - true if the metadata was actually fetched from the remote repository during the
resolution, false if the metadata was resolved from a locally cached copy.null.public boolean isUpdated()
true if the metadata was actually fetched from the remote repository during the resolution,
false if the metadata was resolved from a locally cached copy.public boolean isResolved()
getException() indicating a transfer error while trying to
refetch the metadata from the remote repository.true if the metadata was resolved, false otherwise.Metadata.getFile()public boolean isMissing()
true if the metadata is not present in the remote repository, false otherwise.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.