public abstract class AbstractProjectSpec extends Object implements ProjectSpec
| Constructor and Description |
|---|
AbstractProjectSpec() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPreconditions(IProjectRegistry<?> registry) |
boolean |
containsProject(IProjectRegistry<?> registry)
Determines whether the given registry contains at least 1 project which meets this spec.
|
protected abstract String |
formatMultipleMatchesMessage(Iterable<? extends ProjectIdentifier> matches) |
protected abstract String |
formatNoMatchesMessage() |
protected abstract boolean |
select(ProjectIdentifier project) |
<T extends ProjectIdentifier> |
selectProject(IProjectRegistry<? extends T> registry)
Returns the single project in the given registry which meets this spec.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayNamepublic boolean containsProject(IProjectRegistry<?> registry)
ProjectSpeccontainsProject in interface ProjectSpecpublic <T extends ProjectIdentifier> T selectProject(IProjectRegistry<? extends T> registry)
ProjectSpecselectProject in interface ProjectSpecprotected void checkPreconditions(IProjectRegistry<?> registry)
protected abstract String formatMultipleMatchesMessage(Iterable<? extends ProjectIdentifier> matches)
protected abstract String formatNoMatchesMessage()
protected abstract boolean select(ProjectIdentifier project)
Copyright © 2013. All rights reserved