public final class ChainedWorkspaceReader extends Object implements WorkspaceReader
| Constructor and Description |
|---|
ChainedWorkspaceReader(WorkspaceReader... readers)
Creates a new workspace reader by chaining the specified readers.
|
| Modifier and Type | Method and Description |
|---|---|
File |
findArtifact(Artifact artifact)
Locates the specified artifact.
|
List<String> |
findVersions(Artifact artifact)
Determines all available versions of the specified artifact.
|
WorkspaceRepository |
getRepository()
Gets a description of the workspace repository.
|
static WorkspaceReader |
newInstance(WorkspaceReader reader1,
WorkspaceReader reader2)
Creates a new workspace reader by chaining the specified readers.
|
public ChainedWorkspaceReader(WorkspaceReader... readers)
readers - The readers to chain, may be null.newInstance(WorkspaceReader, WorkspaceReader)public static WorkspaceReader newInstance(WorkspaceReader reader1, WorkspaceReader reader2)
null.reader1 - The first workspace reader, may be null.reader2 - The second workspace reader, may be null.null if no workspace reader was supplied.public File findArtifact(Artifact artifact)
WorkspaceReaderfindArtifact in interface WorkspaceReaderartifact - The artifact to locate, must not be null.null if the artifact is not available.public List<String> findVersions(Artifact artifact)
WorkspaceReaderfindVersions in interface WorkspaceReaderartifact - The artifact whose versions should be listed, must not be null.null.public WorkspaceRepository getRepository()
WorkspaceReadergetRepository in interface WorkspaceReadernull.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.