net.lessy.util.messaging
Interface Message

All Known Implementing Classes:
DefaultMessage

public interface Message

Interface for the Message Objects.

Author:
Hans Lesmeister

Method Summary
 String getCommand()
          Returns the message's command.
 Object getData()
          Returns the optional data.
 boolean isCommand(String command)
          Compares this message's command string with the given command string and returns true only if they match.
 

Method Detail

getCommand

String getCommand()
Returns the message's command.


getData

Object getData()
Returns the optional data. May return null.


isCommand

boolean isCommand(String command)
Compares this message's command string with the given command string and returns true only if they match.



Copyright © 2012. All Rights Reserved.