public class ValidationResult extends FilterResult
CONTEXT_KEY
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
ValidationResult()
Public default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addResult(OnFailResult result,
OnFail onFail)
Adds the
OnFailResult with OnFail level passed in. |
List<OnFailResult> |
getErrors()
Gets all the
OnFailResult s 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. |
List<OnFailResult> |
getOKs()
Gets all the
OnFailResult s that were reported at the OnFail.OK
level. |
List<OnFailResult> |
getWarnings()
Gets all the
OnFailResult s that were reported at the OnFail.WARN
level. |
String |
toString() |
getResult, getResults, getSystemId, setResults, setSystemId
public List<OnFailResult> getOKs()
OnFailResult
s that were reported at the OnFail.OK
level.OnFailResult
reported at OnFail.OK
.public List<OnFailResult> getWarnings()
OnFailResult
s that were reported at the OnFail.WARN
level.OnFailResult
reported at OnFail.WARN
.public List<OnFailResult> getErrors()
OnFailResult
s that were reported at the OnFail.ERROR
level.OnFailResult
reported at OnFail.ERROR
.public OnFailResult getFatal()
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.Copyright © 2020. All rights reserved.