org.zlatan.sap
Class ReturnMessage

java.lang.Object
  extended byorg.zlatan.sap.ReturnMessage

public class ReturnMessage
extends java.lang.Object


Field Summary
static int ERROR
           
static int INFORMATION
           
static int SUCCESS
           
static int WARNING
           
 
Constructor Summary
ReturnMessage()
          Creates a new instance of ReturnMessage
ReturnMessage(int type, java.lang.String text)
           
 
Method Summary
 java.lang.String getText()
          Getter for property text.
 int getType()
          Getter for property type.
 void setText(java.lang.String text)
          Setter for property text.
 void setType(int type)
          Setter for property type.
static java.lang.String typeIntToString(int type)
           
static int typeStringToInt(java.lang.String sType)
          Ritorna il tipo associato con il carattere specificato in sType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WARNING

public static final int WARNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

INFORMATION

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

ReturnMessage

public ReturnMessage()
Creates a new instance of ReturnMessage


ReturnMessage

public ReturnMessage(int type,
                     java.lang.String text)
Method Detail

getType

public int getType()
Getter for property type.

Returns:
Value of property type.

setType

public void setType(int type)
Setter for property type.

Parameters:
type - New value of property type.

getText

public java.lang.String getText()
Getter for property text.

Returns:
Value of property text.

setText

public void setText(java.lang.String text)
Setter for property text.

Parameters:
text - New value of property text.

typeStringToInt

public static int typeStringToInt(java.lang.String sType)
Ritorna il tipo associato con il carattere specificato in sType. Se il carattere non è uno tra E W S I, ritorna -1.


typeIntToString

public static java.lang.String typeIntToString(int type)