public interface FilteredMessage
BusMessage object and additional flags
and properties added by filters.| Modifier and Type | Interface and Description |
|---|---|
static class |
FilteredMessage.Flag
Flags that can trigger various actions by the tracer and/or the graphical console.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
addFlag(FilteredMessage.Flag action,
FilteredMessage.Flag... actions)
Associates one or more flags with this message.
|
default void |
clearFlags()
Removes all flags from this message.
|
org.lsst.ccs.bus.messages.BusMessage |
getBusMessage()
Returns the wrapped bus message, usually the original message received over the buses.
|
default Color |
getColor()
Returns the color to be used for printing this message.
|
default EnumSet<FilteredMessage.Flag> |
getFlags()
Returns the flags associated with this message.
|
default String |
getMessage()
Deprecated.
Use
getText() instead. |
default Object |
getProperty(String key)
Returns the property of this message identified by the specified key.
|
default String |
getText()
Returns the text message associated with this filtered message.
|
org.lsst.ccs.bus.messages.BusMessage |
setBusMessage(org.lsst.ccs.bus.messages.BusMessage busMessage)
Sets the wrapped bus message.
|
default Color |
setColor(Color color)
Sets the color to be used for printing this message.
|
default String |
setMessage(String message)
Deprecated.
Use
setText(...) instead. |
default Object |
setProperty(String key,
Object value)
Sets the property of this message identified by the specified key.
|
default String |
setText(String message)
Associates a text message with this filtered message.
|
org.lsst.ccs.bus.messages.BusMessage getBusMessage()
org.lsst.ccs.bus.messages.BusMessage setBusMessage(org.lsst.ccs.bus.messages.BusMessage busMessage)
busMessage - the bus message object to be wrapped by this filtered message.@Deprecated default String getMessage()
getText() instead.null if there is no associated message.@Deprecated default String setMessage(String message)
setText(...) instead.message - The text message to be associated.null if there was no associated message.default String getText()
null if there is no associated message.default String setText(String message)
message - The text message to be associated.null if there was no associated message.default EnumSet<FilteredMessage.Flag> getFlags()
null if there are no flags.default void addFlag(FilteredMessage.Flag action, FilteredMessage.Flag... actions)
action - The first flag.actions - More flags, if any.default void clearFlags()
default Color getColor()
null if there is no associated color.default Color setColor(Color color)
color - the color associated with this message.null if there was no associated color.default Object getProperty(String key)
key - The key.null if there is no such property.Copyright © 2018 LSST. All rights reserved.