tapeutils
Class Message

java.lang.Object
  extended bytapeutils.Message

public class Message
extends java.lang.Object

Structure to hold an error/warning message.


Constructor Summary
Message(boolean error, int index, java.lang.String text)
          Constructor
 
Method Summary
 int getIndex()
          Get the message index.
 java.lang.String getText()
          Get the message text.
 boolean isError()
          Check if the message is an error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message(boolean error,
               int index,
               java.lang.String text)
Constructor

Parameters:
error -
index -
text -
Method Detail

isError

public boolean isError()
Check if the message is an error.

Returns:
Indicates whether the message is an error.

getIndex

public int getIndex()
Get the message index.

Returns:
The message index.

getText

public java.lang.String getText()
Get the message text.

Returns:
The message text.