org.apache.avalon.composition.util
Class DefaultState
java.lang.Object
org.apache.avalon.composition.util.DefaultState
- public class DefaultState
- extends Object
The State class desribes the state of a simple action. The state
may reflect a boolean EXECUTING and a boolean ENABLED.
- Version:
- $Revision: 1.1 $ $Date: 2004/02/10 16:23:34 $
- Author:
- Avalon Development Team
Method Summary |
boolean |
isEnabled()
Return the enabled state of the state. |
void |
setEnabled(boolean enabled)
Set the enabled state of the state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultState
public DefaultState()
isEnabled
public boolean isEnabled()
- Return the enabled state of the state.
- Returns:
- TRUE if the state has been enabled else FALSE
setEnabled
public void setEnabled(boolean enabled)
throws IllegalStateException
- Set the enabled state of the state.
- Parameters:
enabled
- the enabled state to assign
- Throws:
IllegalStateException
Copyright © The Apache Software Foundation. All Rights Reserved.