|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.util.MandatoryAndOptionalComponentsMonitor
public class MandatoryAndOptionalComponentsMonitor
A monitor that tracks both, mandatory and optional components.
| Constructor Summary | |
|---|---|
MandatoryAndOptionalComponentsMonitor(String[] mandatoryComponents,
String[] optionalComponents)
Instantiates a new mandatory and optional components monitor. |
|
| Method Summary | |
|---|---|
boolean |
allComponentsUsed()
Check if all components are used. |
boolean |
finalStateValid()
Checks if the final state is valid. |
List<String> |
getRemainingComponents()
Gets the remaining components. |
ComponentsMonitor |
useComponent(String component)
Use a component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MandatoryAndOptionalComponentsMonitor(String[] mandatoryComponents,
String[] optionalComponents)
throws IllegalArgumentException
mandatoryComponents - the mandatory componentsoptionalComponents - the optional components
IllegalArgumentException - if the same component is defined as mandatory and optional| Method Detail |
|---|
public ComponentsMonitor useComponent(String component)
useComponent in interface ComponentsMonitorcomponent - the component
public boolean allComponentsUsed()
allComponentsUsed in interface ComponentsMonitorpublic boolean finalStateValid()
finalStateValid in interface ComponentsMonitorpublic List<String> getRemainingComponents()
getRemainingComponents in interface ComponentsMonitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||