Package org.jibx.v2
Class SchemaValidationContext
java.lang.Object
org.jibx.v2.ValidationContext
org.jibx.v2.SchemaValidationContext
- All Implemented Interfaces:
ISkipElements
Tracks the schema validation state. This includes order-dependent state information collected while walking the tree
structure of a schema model. Collects all errors and warnings and maintains a summary of the severity of the problems
found. For ease of use, this also wraps the schema name register with convenience methods for validation.
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidoptionalLengthCheck(String name, String value, int min, int max) voidoptionalPatternCheck(String name, String value, String pattern) voidrequiredLengthCheck(String name, String value, int min, int max) voidrequiredPatternCheck(String name, String value, String pattern) voidMethods inherited from class org.jibx.v2.ValidationContext
addError, addFatal, addProblem, addSkip, addWarning, getErrorCount, getFatalCount, getProblems, getWarningCount, handleMissingElement, isSkipped
-
Field Details
-
m_object
-
-
Constructor Details
-
SchemaValidationContext
public SchemaValidationContext()
-
-
Method Details
-
setObject
-
requiredPatternCheck
- Throws:
JiBXException
-
optionalPatternCheck
- Throws:
JiBXException
-
requiredLengthCheck
- Throws:
JiBXException
-
optionalLengthCheck
- Throws:
JiBXException
-