|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.se.state.AbstractState
public abstract class AbstractState
Represents a module state. All existing instances of this class should be unique.
Constructor Summary | |
---|---|
protected |
AbstractState(java.lang.String text,
boolean failure,
int code)
Creates new module state. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getCode()
Get module state code. |
java.lang.String |
getText()
Get meaning of module state. |
int |
hashCode()
|
boolean |
isFailure()
Is this a failure state? |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractState(java.lang.String text, boolean failure, int code)
text
- meaning of this state, null
is not permitted.failure
- is this a failure state?code
- code of this state.
java.lang.IllegalArgumentException
- text == null
Method Detail |
---|
public java.lang.String getText()
State
getText
in interface State
public boolean isFailure()
State
isFailure
in interface State
public int getCode()
State
getCode
in interface State
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |