Package org.frankframework.validation
Class JavaxXmlValidator
java.lang.Object
org.frankframework.validation.AbstractXmlValidator
org.frankframework.validation.JavaxXmlValidator
- All Implemented Interfaces:
IConfigurationAware
,IScopeProvider
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Straightforward XML-validation based on javax.validation. This is work in programs.
- Author:
- Michiel Meeuwissen, Jaco de Groot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.validation.AbstractXmlValidator
AbstractXmlValidator.ValidationResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class org.frankframework.validation.AbstractXmlValidator
ignoreUnknownNamespaces, log, logPrefix, schemasProvider, warn
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(IConfigurationAware owner) Configure the XmlValidatororg.frankframework.validation.JavaxValidationContext
createValidationContext
(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) protected Schema
getSchemaObject
(String schemasId, List<Schema> schemas) Returns theSchema
associated with this validator.getSchemaSources
(List<Schema> schemas) getValidatorHandler
(PipeLineSession session, AbstractValidationContext context) List<org.apache.xerces.xs.XSModel>
protected List<org.apache.xerces.xs.XSModel>
getXSModels
(List<Schema> schemas) void
start()
Methods inherited from class org.frankframework.validation.AbstractXmlValidator
finalizeValidation, getApplicationContext, getCharset, getConfigurationClassLoader, getIgnoreUnknownNamespaces, getInputSource, getLogPrefix, getName, getOwner, getReasonSessionKey, getXmlReasonSessionKey, getXmlSchemaVersion, isFullSchemaChecking, isIgnoreCaching, isStarted, isThrowException, isValidateFile, isXmlSchema1_0, setApplicationContext, setCharset, setFullSchemaChecking, setIgnoreCaching, setIgnoreUnknownNamespaces, setReasonSessionKey, setSchemasProvider, setThrowException, setValidateFile, setWarn, setXmlReasonSessionKey, setXmlSchemaVersion, stop, validate, validate, validate
-
Field Details
-
PARSING_FEATURE_SECURE
- See Also:
-
PARSING_FEATURE_EXTERNAL_GENERAL_ENTITIES
- See Also:
-
PARSING_FEATURE_EXTERNAL_PARAMETER_ENTITIES
- See Also:
-
PARSING_FEATURE_DISALLOW_INLINE_DOCTYPE
- See Also:
-
-
Constructor Details
-
JavaxXmlValidator
public JavaxXmlValidator()
-
-
Method Details
-
configure
Description copied from class:AbstractXmlValidator
Configure the XmlValidator- Overrides:
configure
in classAbstractXmlValidator
- Throws:
ConfigurationException
- when:- the schema cannot be found
- <
AbstractXmlValidator.isThrowException()
is false and there is no forward defined for "failure" - when the parser does not accept setting the properties for validating
-
start
- Overrides:
start
in classAbstractXmlValidator
- Throws:
ConfigurationException
-
createValidationContext
public org.frankframework.validation.JavaxValidationContext createValidationContext(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) throws ConfigurationException, PipeRunException- Overrides:
createValidationContext
in classAbstractXmlValidator
- Throws:
ConfigurationException
PipeRunException
-
getValidatorHandler
public ValidatorHandler getValidatorHandler(PipeLineSession session, AbstractValidationContext context) throws ConfigurationException, PipeRunException - Specified by:
getValidatorHandler
in classAbstractXmlValidator
- Throws:
ConfigurationException
PipeRunException
-
getSchemaObject
protected Schema getSchemaObject(String schemasId, List<Schema> schemas) throws ConfigurationException Returns theSchema
associated with this validator. This is an XSD schema containing knowledge about the schema source as returned bygetSchemaSources(List)
- Throws:
ConfigurationException
-
getSchemaSources
- Throws:
IOException
-
getXSModels
-
getXSModels
- Specified by:
getXSModels
in classAbstractXmlValidator
-