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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the message.intGet the messageNo.Return the Date when theProblemhas occurred.inthashCode()voidsetMessage(String message) Set the message.voidsetMessageNo(int messageNo) Set the messageNo.voidsetOccurred(Date occurred) Set the Date when theProblemoccurred.private String
-
Field Details
-
occurred
Timestamp when theProblemoccurred. -
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 newProbleminstance. -
Problem
Create a newProbleminstance with a message text.- Parameters:
message- text as String
-
Problem
Create a newProbleminstance with a message text and a message number.- Parameters:
message- text as StringmessageNo- message number
-
-
Method Details
-
trim
-
getOccurred
Return the Date when theProblemhas occurred.- Returns:
- Date when occurred.
-
setOccurred
Set the Date when theProblemoccurred.- 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()
-