|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Feedback
Abstract Feedback class. Should be subclassed specifically for different domains.
Method Summary | |
---|---|
void |
addAdditionalData(java.lang.String s,
java.lang.String key,
java.lang.String value)
Adds additional data to a message. |
void |
addMessage(java.lang.String s)
Add a message to the Errors, with no additional data. |
void |
addMessage(java.lang.String s,
java.util.Map<java.lang.String,java.lang.String> map)
Add a message to the Errors, with a Map of additional data. |
void |
addSatisfiedConstraint(java.lang.String name)
Add the name of a satisfied constraint to the collection of violated constraints. |
void |
addViolatedConstraint(java.lang.String name)
Add the name of a violated constraint to the collection of violated constraints. |
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalData(java.lang.String message)
Get any additional data associated with a given message. |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getErrors()
Get all the errors, including all additional data |
java.util.Set<java.lang.String> |
getMessages()
Get the feedback messages, ignoring any additional data |
java.util.Set<java.lang.String> |
getRelevantConstraints()
Get the Set of relevant constraints. |
java.util.Collection<java.lang.String> |
getSatisfiedConstraints()
Get the collection of satisfied constraint names |
java.util.Collection<java.lang.String> |
getViolatedConstraints()
Get the collection of violated constraint names |
Method Detail |
---|
void addMessage(java.lang.String s)
s
- The message to addvoid addMessage(java.lang.String s, java.util.Map<java.lang.String,java.lang.String> map)
s
- The message to addmap
- The map of additional datavoid addAdditionalData(java.lang.String s, java.lang.String key, java.lang.String value)
s
- The existing messagekey
- The key for the additional datavalue
- The value for the additional datajava.util.Set<java.lang.String> getMessages()
java.util.Map<java.lang.String,java.lang.String> getAdditionalData(java.lang.String message)
message
- The message you want the additional data of
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getErrors()
void addViolatedConstraint(java.lang.String name)
name
- The name of the constraint to addjava.util.Collection<java.lang.String> getViolatedConstraints()
java.util.Collection<java.lang.String> getSatisfiedConstraints()
void addSatisfiedConstraint(java.lang.String name)
name
- The name of the constraint to addjava.util.Set<java.lang.String> getRelevantConstraints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |