org.openwms.common.domain.values
Class Problem

java.lang.Object
  extended by org.openwms.common.domain.values.Problem
All Implemented Interfaces:
Serializable

public class Problem
extends Object
implements Serializable

A Problem is used to signal an occurred failure.

Since:
0.1
Version:
$Revision: 1594 $
Author:
Heiko Scherrer
See Also:
Serialized Form

Constructor Summary
Problem()
          Creates a new Problem instance.
Problem(String message)
          Create a new Problem instance with a message text.
Problem(String message, int messageNo)
          Create a new Problem instance with a message text and a message number.
 
Method Summary
 String getMessage()
          Get the message.
 int getMessageNo()
          Get the messageNo.
 Date getOccurred()
          Return the Date when the Problem has occurred.
 void setMessage(String message)
          Set the message.
 void setMessageNo(int messageNo)
          Set the messageNo.
 void setOccurred(Date occurred)
          Set the Date when the Problem occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Problem

public Problem()
Creates a new Problem instance.


Problem

public Problem(String message)
Create a new Problem instance with a message text.

Parameters:
message - text as String

Problem

public Problem(String message,
               int messageNo)
Create a new Problem instance with a message text and a message number.

Parameters:
message - text as String
messageNo - message number
Method Detail

getOccurred

public Date getOccurred()
Return the Date when the Problem has occurred.

Returns:
Date when occurred.

setOccurred

public void setOccurred(Date occurred)
Set the Date when the Problem occurred.

Parameters:
occurred - The Date to set.

getMessageNo

public int getMessageNo()
Get the messageNo.

Returns:
The messageNo.

setMessageNo

public void setMessageNo(int messageNo)
Set the messageNo.

Parameters:
messageNo - The messageNo to set.

getMessage

public String getMessage()
Get the message.

Returns:
The message.

setMessage

public void setMessage(String message)
Set the message.

Parameters:
message - The message to set.


Copyright © 2005-2011 openwms.org. All Rights Reserved.