|
||||||||||
| 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 Statepublic boolean isFailure()
State
isFailure in interface Statepublic int getCode()
State
getCode in interface Statepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||