|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PhaseFilter> net.sf.magicproject.event.phase.PhaseFilter
public enum PhaseFilter
Enum Constant Summary | |
---|---|
ID_PHASE_FILTER
This code is used to do a test on phase's identifiant |
|
INDEX_PHASE_FILTER
This code is used to do a test on phase's index |
Method Summary | |
---|---|
int |
getPhaseFilter()
Return the identifiant or the index of current phase. |
void |
setNextPhase(int idPhase)
Set the identifiant or the index of next phase. |
static PhaseFilter |
valueOf(java.io.InputStream input)
Read and return the enum from the given inputstream. |
static PhaseFilter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PhaseFilter[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
void |
write(java.io.OutputStream out)
Wrtite this enum to the given outputstream. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PhaseFilter INDEX_PHASE_FILTER
public static final PhaseFilter ID_PHASE_FILTER
Method Detail |
---|
public static PhaseFilter[] values()
for (PhaseFilter c : PhaseFilter.values()) System.out.println(c);
public static PhaseFilter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getPhaseFilter()
public void setNextPhase(int idPhase)
idPhase
- the identifiant or the index of next phase.public void write(java.io.OutputStream out) throws java.io.IOException
out
- the stream ths enum would be written.
java.io.IOException
- error while writting event's idpublic static PhaseFilter valueOf(java.io.InputStream input) throws java.io.IOException
input
- the stream containing the enum to read.
java.io.IOException
- error while reading event's id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |