Package org.openwms.values
Class Problem
java.lang.Object
org.openwms.values.Problem
- All Implemented Interfaces:
Serializable
A Problem is used to signal an occurred failure.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the message.int
Get the messageNo.Return the Date when theProblem
has occurred.int
hashCode()
void
setMessage
(String message) Set the message.void
setMessageNo
(int messageNo) Set the messageNo.void
setOccurred
(Date occurred) Set the Date when theProblem
occurred.private String
-
Field Details
-
occurred
Timestamp when theProblem
occurred. -
messageNo
private int messageNoMessage number of theProblem
. -
message
Message text about theProblem
. -
DEF_MESSAGE_LENGTH
public static final int DEF_MESSAGE_LENGTH- See Also:
-
-
Constructor Details
-
Problem
public Problem()Creates a newProblem
instance. -
Problem
Create a newProblem
instance with a message text.- Parameters:
message
- text as String
-
Problem
Create a newProblem
instance with a message text and a message number.- Parameters:
message
- text as StringmessageNo
- message number
-
-
Method Details
-
trim
-
getOccurred
Return the Date when theProblem
has occurred.- Returns:
- Date when occurred.
-
setOccurred
Set the Date when theProblem
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
Get the message.- Returns:
- The message.
-
setMessage
Set the message.- Parameters:
message
- The message to set.
-
equals
-
hashCode
public int hashCode()
-