public interface WaveType
WaveItem parameters.| Modifier and Type | Method and Description |
|---|---|
String |
action()
Return the current action name.
|
WaveType |
action(String action)
Set the action name.
|
List<WaveItem<?>> |
items()
Return all WaveItems used by this WaveType.
|
WaveType |
items(WaveItem<?>... items)
Set all WaveItems used by the current WaveType used as parameter during wave handling.
|
WaveType |
onException(Class<? extends Command> exceptionCommandClass,
Class<? extends Throwable>... exceptionTypes)
Define the Command to call in order to handle given exception types.
|
WaveType |
onException(WaveType exceptionWaveType,
Class<? extends Throwable>... exceptionTypes)
Define the
WaveType to send in order to manage given exception types. |
List<WaveItem<?>> |
parameters()
Return only WaveItem that can be used as method parameter.
|
String |
returnAction()
Return the return Wave Type action name.
|
WaveType |
returnAction(String action)
Set the return Wave Type action name.
|
Class<? extends Command> |
returnCommandClass()
Return the Command to call in order to process the returned value.
|
WaveType |
returnCommandClass(Class<? extends Command> returnCommandClass)
Set the Command to call in order to process the returned value.
|
WaveItem<?> |
returnItem()
Set the WaveItem returned.
|
WaveType |
returnItem(WaveItem<?> returnItem)
Set the WaveItem that hold the type sent to hold the current WaveType result.
|
WaveType |
returnWaveType()
Return the WaveType emitted as the result of the current WaveType.
|
WaveType |
returnWaveType(WaveType returnWaveType)
Set the WaveType that will be used a return, override returnItem and returnAction.
|
int |
uid()
Return the unique identifier of the WaveType.
|
WaveType |
uid(int uid)
Sets the unique identifier of the WaveType.
|
Map<Class<? extends Throwable>,Wave> |
waveExceptionHanler()
Return the map of wave exception handler.
|
int uid()
WaveType uid(int uid)
uid - the uid to setString action()
WaveType action(String action)
action - the action name to setList<WaveItem<?>> items()
WaveType items(WaveItem<?>... items)
items - the wave items to setString returnAction()
WaveType returnAction(String action)
action - the return action name to setWaveItem<?> returnItem()
WaveType returnItem(WaveItem<?> returnItem)
returnItem - the return WaveItem to setWaveType returnWaveType()
WaveType returnWaveType(WaveType returnWaveType)
returnWaveType - the return WaveType to setWaveType returnCommandClass(Class<? extends Command> returnCommandClass)
returnCommandClass - the command class to setClass<? extends Command> returnCommandClass()
List<WaveItem<?>> parameters()
Map<Class<? extends Throwable>,Wave> waveExceptionHanler()
WaveType onException(Class<? extends Command> exceptionCommandClass, Class<? extends Throwable>... exceptionTypes)
exceptionCommandClass - the command class to useexceptionTypes - the types of exception to manage (none = all)WaveType onException(WaveType exceptionWaveType, Class<? extends Throwable>... exceptionTypes)
WaveType to send in order to manage given exception types.exceptionWaveType - the WaveType to send to handle the exceptionexceptionTypes - the types of exception to manage (none = all)Copyright © 2011–2015 JRebirth OSS. All rights reserved.