Class ValidationResponse
java.lang.Object
com.onenetwork.platform.data.validation.ValidationResponse
public class ValidationResponse
extends java.lang.Object
Captures the outcome of a
ValidationRequest
.-
Constructor Summary
Constructors Constructor Description ValidationResponse()
-
Method Summary
Modifier and Type Method Description void
addValidationFailed(ValidationPackage pkg, ValidationRuleThen ruleThen)
java.util.Map<ValidationPackage,java.lang.String>
getCompileFailed()
Returns all ValidationPackages which could not be run, typically because their syntax or bindings were incorrect.java.util.List<ValidatedModelState>
getValidatedModelStatesForContext(java.lang.String context, java.lang.String subContext)
Returns all ValidatedModelStates for a given context and subContext.java.util.List<ValidationPackage>
getValidationFailed()
Returns all ValidationPackages which were run and passedjava.util.List<java.lang.String>
getValidationFailedErrorMessages()
java.util.Map<ValidationPackage,ValidationRuleThen>
getValidationRuleThensFailed()
java.util.List<ValidationPackage>
getValidationSucceeded()
Returns all ValidationPackages which were run and passed
-
Constructor Details
-
ValidationResponse
public ValidationResponse()
-
-
Method Details
-
getValidationSucceeded
Returns all ValidationPackages which were run and passed -
getValidationFailed
Returns all ValidationPackages which were run and passed -
addValidationFailed
-
getValidationFailedErrorMessages
public java.util.List<java.lang.String> getValidationFailedErrorMessages() -
getValidationRuleThensFailed
-
getCompileFailed
Returns all ValidationPackages which could not be run, typically because their syntax or bindings were incorrect. Keys in this Map are ValidationPackages, values are errors describing why the could not be run -
getValidatedModelStatesForContext
public java.util.List<ValidatedModelState> getValidatedModelStatesForContext(java.lang.String context, java.lang.String subContext)Returns all ValidatedModelStates for a given context and subContext. Note that the order of the ValidatedModelStates in the list matches the order of the bindings for the given context and subcontext. In other words, the nth ValidatedModelState should be applied to the object used to generate the nth model bindings that were included in the ValidationRequest.
-