|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.milyn.payload.FilterResult
org.milyn.validation.ValidationResult
public class ValidationResult
ValidationResult object for capturing validation failures at different levels.
| Field Summary |
|---|
| Fields inherited from class org.milyn.payload.FilterResult |
|---|
CONTEXT_KEY |
| Fields inherited from interface javax.xml.transform.Result |
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
|---|---|
ValidationResult()
Public default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addResult(OnFailResult result,
OnFail onFail)
Adds the OnFailResult with OnFail level passed in. |
java.util.List<OnFailResult> |
getErrors()
Gets all the OnFailResults that were reported at the OnFail.ERROR
level. |
OnFailResult |
getFatal()
Gets the OnFailResult that was reported as a OnFail.FATAL. |
int |
getNumFailures()
Get the total number of failures on this ValidationResult instance. |
java.util.List<OnFailResult> |
getOKs()
Gets all the OnFailResults that were reported at the OnFail.OK
level. |
java.util.List<OnFailResult> |
getWarnings()
Gets all the OnFailResults that were reported at the OnFail.WARN
level. |
java.lang.String |
toString()
|
| Methods inherited from class org.milyn.payload.FilterResult |
|---|
getResult, getResults, getSystemId, setResults, setSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationResult()
| Method Detail |
|---|
public java.util.List<OnFailResult> getOKs()
OnFailResults that were reported at the OnFail.OK
level.
OnFailResult reported at OnFail.OK.public java.util.List<OnFailResult> getWarnings()
OnFailResults that were reported at the OnFail.WARN
level.
OnFailResult reported at OnFail.WARN.public java.util.List<OnFailResult> getErrors()
OnFailResults that were reported at the OnFail.ERROR
level.
OnFailResult reported at OnFail.ERROR.public OnFailResult getFatal()
OnFailResult that was reported as a OnFail.FATAL.
Can only be one OnFail.FATAL.
OnFail.FATAL OnFailResult if one occured, otherwise null.public int getNumFailures()
ValidationResult instance.
ValidationResult instance.
protected void addResult(OnFailResult result,
OnFail onFail)
OnFailResult with OnFail level passed in.
result - The OnFailResult. Cannot be null.onFail - The OnFail level for which this rule should be reported.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||