|
||||||||||
Previous class Subsequent class | Frames No frames | |||||||||
Overview: nested | Field | Constructor | Method | Details: Field | Constructor | Method |
java.lang.Objectjp.terasoluna.fw.service.thin.BLogicMessage
public class BLogicMessage
Message information class.
It is generated at the time of setting the message after receiving the execution result of business logic. Message can be fetched from message resource by specifying the resource bundle key of message in first argument and replacement string in second argument(variable arguments) of constructor. First argument can also be used as it is in the form of message string without fetching the message from mesage resource. In such a case, specify that message string in first argument and false in second argument.
For usage example, refer to AbstractBLogicAction.
AbstractBLogicAction
,
Serialized formField Summary | |
---|---|
protected java.lang.String |
key
Message KEY. |
protected boolean |
resource
Is the key a bundle key (true) or a literal value (false). |
private static long |
serialVersionUID
Serial version ID |
protected java.lang.Object[] |
values
Array wherein replacement string is stored. |
Constructor Summary | |
---|---|
BLogicMessage(java.lang.String key)
Constructor. |
|
BLogicMessage(java.lang.String key,
boolean resource)
Constructor. |
|
BLogicMessage(java.lang.String key,
java.lang.Object... values)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getKey()
Fetch message KEY. |
java.lang.Object[] |
getValues()
Fetch the array wherein replacement string is stored. |
boolean |
isResource()
Decide whether the key is bundle key or a literal value. |
Method inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Details |
---|
private static final long serialVersionUID
protected java.lang.String key
protected java.lang.Object[] values
protected boolean resource
Constructor Details |
---|
public BLogicMessage(java.lang.String key)
key
- Message KEYpublic BLogicMessage(java.lang.String key, java.lang.Object... values)
key
- Message KEYvalues
- Replacement stringpublic BLogicMessage(java.lang.String key, boolean resource)
key
- Message KEYresource
- Is the key a bundle key (true) or a literal value(false).Method Details |
---|
public java.lang.String getKey()
public java.lang.Object[] getValues()
public boolean isResource()
|
||||||||||
Previous class Subsequent class | Frames No frames | |||||||||
Overview: nested | Field | Constructor | Method | Details: Field | Constructor | Method |