Class ValidationResult
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.core.FoundationObject
com.northconcepts.datapipeline.foundations.schema.SchemaObject
com.northconcepts.datapipeline.foundations.schema.ValidationResult
- All Implemented Interfaces:
DataExceptionContributor,JsonSerializable,RecordSerializable,XmlSerializable,JavaCodeGenerator,Serializable,Cloneable
Collects the
ValidationMessage errors produced when mapping or validating data against a schema definition.- See Also:
-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
internalId, internalName, log, TIMESTAMP_FORMATFields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPEFields inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
XML_SERIALIZED_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclear()clone()Returns the errors or null if none were added.getErrors(boolean create) Returns the errors, creating the list if it is null andcreateis true.Returns the field name of each error in order, with null for errors not tied to a field.ReturnsFieldDef.getNameForErrorMessage()for the field of each error in order, with null for errors not tied to a field.Returns the field of each error in order, with null for errors not tied to a field.Returns the message of each error in order (empty if there are none).booleanbooleanisValid()setErrors(List<ValidationMessage> errors) Methods inherited from class com.northconcepts.datapipeline.foundations.core.FoundationObject
addExceptionProperties, assertValid, assertValid, exception, exception, exception, getInternalId, getInternalName, resetInternalIdMethods inherited from class com.northconcepts.datapipeline.foundations.core.Bean
fromRecord, toRecord, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionPropertiesMethods inherited from interface com.northconcepts.datapipeline.sourcecode.JavaCodeGenerator
generateJavaCodeMethods inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
fromJson, fromJson, toJson, toJson, toJsonMethods inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
fromXml, fromXml, fromXmlElement, toXml, toXml, toXml, toXml, toXml, toXmlElement
-
Constructor Details
-
ValidationResult
public ValidationResult()
-
-
Method Details
-
clone
- Overrides:
clonein classFoundationObject
-
isValid
public boolean isValid() -
isNotValid
public boolean isNotValid() -
getErrors
Returns the errors or null if none were added. -
getErrors
Returns the errors, creating the list if it is null andcreateis true. -
setErrors
-
getMessages
Returns the message of each error in order (empty if there are none). -
getFields
Returns the field of each error in order, with null for errors not tied to a field. -
getFieldNames
Returns the field name of each error in order, with null for errors not tied to a field. -
getFieldNamesForErrorMessage
ReturnsFieldDef.getNameForErrorMessage()for the field of each error in order, with null for errors not tied to a field. -
clear
-