|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.applib.util.ReasonBuffer
public class ReasonBuffer
Helper class to create properly concatenated reason string for use in method that return Strings
with reasons.
If no reasons are specified getReason() will return null , otherwise it will return
a String with all the valid reasons concatenated with a semi-colon separating each one.
| Constructor Summary | |
|---|---|
ReasonBuffer()
|
|
| Method Summary | |
|---|---|
void |
append(String reason)
Append a reason to the list of existing reasons. |
void |
appendOnCondition(boolean condition,
String reason)
Append a reason to the list of existing reasons if the condition flag is true. |
String |
getReason()
Return the combined set of reasons, or null if there are none. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReasonBuffer()
| Method Detail |
|---|
public void append(String reason)
public void appendOnCondition(boolean condition,
String reason)
public String getReason()
null if there are none.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||