|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TargetProviding<T extends TargetDefinition>
Target providing instances casn be thought of objects that provide different
TargetDefinition. Each taret provider provides only a special
class of targets, to minimize possible confusion.
| Field Summary | |
|---|---|
static String |
SERIAL
Default extension for serialized targets, including the dot. |
static String |
XML
Default extension for XML-files, including the dot. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final String XML
static final String SERIAL
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||