|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.henshin.statespace.ValidationResult
public final class ValidationResult
Validation result data class.
Field Summary | |
---|---|
static ValidationResult |
INVALID
Static validation result for invalid properties, without extra message or data. |
static ValidationResult |
VALID
Static validation result for successful validations without messages. |
Constructor Summary | |
---|---|
ValidationResult(boolean valid)
Constructor. |
|
ValidationResult(boolean valid,
String message)
Constructor. |
|
ValidationResult(boolean valid,
String message,
Object result)
Default constructor. |
Method Summary | |
---|---|
String |
getMessage()
Get the message associated with this validation result. |
Object |
getResult()
Get the optional result associated with this result. |
boolean |
isValid()
Returns true if a property was successfully validated. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ValidationResult VALID
public static final ValidationResult INVALID
Constructor Detail |
---|
public ValidationResult(boolean valid, String message, Object result)
valid
- Valid-flag.message
- Message.result
- Result.public ValidationResult(boolean valid, String message)
valid
- Valid-flag.message
- Message.public ValidationResult(boolean valid)
valid
- Valid-flag.Method Detail |
---|
public boolean isValid()
true
if a property was successfully validated.
true
if the property is valid.public String getMessage()
public Object getResult()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |