Package org.frankframework.validation
Class JavaxXmlValidator
java.lang.Object
org.frankframework.validation.AbstractXmlValidator
org.frankframework.validation.JavaxXmlValidator
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,IScopeProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.frankframework.validation.AbstractXmlValidator
ignoreUnknownNamespaces, log, logPrefix, schemasProvider, warn -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(HasApplicationContext owner) Configure the XmlValidatororg.frankframework.validation.JavaxValidationContextcreateValidationContext(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) protected SchemagetSchemaObject(String schemasId, List<Schema> schemas) Returns theSchemaassociated 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) voidstart()Methods inherited from class org.frankframework.validation.AbstractXmlValidator
finalizeValidation, getInputSource, getLogPrefix, getName, isRunning, isXmlSchema1_0, setCharset, setFullSchemaChecking, setIgnoreCaching, setIgnoreUnknownNamespaces, setReasonSessionKey, setThrowException, setValidateFile, setWarn, setXmlReasonSessionKey, setXmlSchemaVersion, stop, validate, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
-
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:AbstractXmlValidatorConfigure the XmlValidator- Overrides:
configurein classAbstractXmlValidator- Throws:
ConfigurationException- when:- the schema cannot be found
-
is false and there is no forward defined for "failure"
invalid reference
#isThrowException() - when the parser does not accept setting the properties for validating
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classAbstractXmlValidator
-
createValidationContext
public org.frankframework.validation.JavaxValidationContext createValidationContext(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) throws ConfigurationException, PipeRunException- Overrides:
createValidationContextin classAbstractXmlValidator- Throws:
ConfigurationExceptionPipeRunException
-
getValidatorHandler
public ValidatorHandler getValidatorHandler(PipeLineSession session, AbstractValidationContext context) throws ConfigurationException, PipeRunException - Specified by:
getValidatorHandlerin classAbstractXmlValidator- Throws:
ConfigurationExceptionPipeRunException
-
getSchemaObject
protected Schema getSchemaObject(String schemasId, List<Schema> schemas) throws ConfigurationException Returns theSchemaassociated 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:
getXSModelsin classAbstractXmlValidator
-