public interface TargetProviding<T extends TargetDefinition>
TargetDefinition. Each taret provider provides only a special
class of targets, to minimize possible confusion.| Modifier and Type | Field and Description |
|---|---|
static String |
SERIAL
Default extension for serialized targets, including the dot.
|
static String |
XML
Default extension for XML-files, including the dot.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTarget(T toadd)
Add a target to all targets.
|
void |
clear()
Deletes all targets from all lists.
|
Collection<T> |
getActiveTargets()
Returns all active targets.
|
Collection<T> |
getAllTargets()
Returns all targets known to this provider.
|
Collection<T> |
getCompletedTargets()
Returns all targets that are known to be finished.
|
T |
getFromActive(String name)
Gets the target with the given name from the collection of active
targets only.
|
T |
getFromAll(String name)
Gets the target with the given name from the collection of all
targets.
|
boolean |
removeTarget(T remove)
Removes a target from all lists it is in.
|
boolean |
restore()
Restores the targets to a predefined state.
|
static final String XML
static final String SERIAL
Collection<T> getAllTargets()
Collection<T> getActiveTargets()
getAllTargets().Collection<T> getCompletedTargets()
getAllTargets().HistoryAware,
Appointableboolean addTarget(T toadd)
boolean removeTarget(T remove)
void clear()
T getFromActive(String name)
T getFromAll(String name)
boolean restore()