public class RemoteEventToken extends Token
Modifier and Type | Class and Description |
---|---|
static class |
RemoteEventToken.EventType
Type of notification message being sent to the user.
|
Constructor and Description |
---|
RemoteEventToken()
Initialize the token using its superclass.
|
RemoteEventToken(RemoteEventToken.EventType eventType,
java.lang.String message)
Initialize the token with a name and event type.
|
RemoteEventToken(java.lang.String message,
java.lang.Throwable exception)
Initialize the token when an exception has occurred.
|
Modifier and Type | Method and Description |
---|---|
RemoteEventToken.EventType |
getEventType()
Get the type of notification sent to the user.
|
java.lang.String |
getMessage()
Get the informational message associated with the token.
|
java.lang.String |
toString()
Return the value of this token as a string that can be parsed
by the expression language to recover a token with the same value.
|
add, addReverse, divide, divideReverse, getType, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public RemoteEventToken()
public RemoteEventToken(RemoteEventToken.EventType eventType, java.lang.String message)
eventType
- The type of event to alert the user of.message
- The accompanying message to explain the event.public RemoteEventToken(java.lang.String message, java.lang.Throwable exception)
message
- The accompanying message to explain the event.exception
- Exception thrown by the active simulation.public RemoteEventToken.EventType getEventType()
public java.lang.String getMessage()
public java.lang.String toString()
Token
Token.NIL
then
return "nil"