org.daisy.zedval.engine
Class ZedMessage

java.lang.Object
  extended byorg.daisy.zedval.engine.ZedMessage
Direct Known Subclasses:
ErrorMessage, FailureMessage

public class ZedMessage
extends java.lang.Object

A ZedMessage object represents a ZedVal output message

Author:
James Pritchett

Field Summary
static int DETAIL
           
static int LONG
           
static int SHORT
           
 
Constructor Summary
ZedMessage(int type, java.lang.String text, java.lang.String lang)
           
 
Method Summary
 java.lang.String getLanguage()
          Returns language of message
 java.lang.String getText()
          Returns text of the message
 int getType()
          Returns type of message
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LONG

public static final int LONG
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

DETAIL

public static final int DETAIL
See Also:
Constant Field Values
Constructor Detail

ZedMessage

public ZedMessage(int type,
                  java.lang.String text,
                  java.lang.String lang)
Parameters:
type - The type of message (uses constants LONG, SHORT, DETAIL)
text - The text of the message
lang - The language of the message
Method Detail

getText

public java.lang.String getText()
Returns text of the message

Returns:
String representing text of message

getLanguage

public java.lang.String getLanguage()
Returns language of message

Returns:
String representing language of message using ISO codes

getType

public int getType()
Returns type of message

Returns:
LONG, SHORT, or DETAIL code

toString

public java.lang.String toString()