|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.MsgReplacementParameter
public class MsgReplacementParameter
When creating a message the text might be created by replacing parameters (or placeholders) with concrete values, e.g. "The sum insured must be at least {minSumInsured}." where {minSumInsured} is replaced with the current minimum e.g. 200 Euro. If you need to represent the user a different text, you need the actual value for the parameter. To archieve this the message holds the parameters along with their actual value.
The following are scenarios where you might need to present a different text for a message:
| Constructor Summary | |
|---|---|
MsgReplacementParameter(String paramName,
Object paramValue)
Creates a new parameter value with name and value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getName()
Returns the parameter's name. |
Object |
getValue()
Returns the parameter's value. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MsgReplacementParameter(String paramName,
Object paramValue)
NullPointerException - if paramName is null.| Method Detail |
|---|
public String getName()
null.
public Object getValue()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||