Package org.frankframework.validation
Class XercesXmlValidator
java.lang.Object
org.frankframework.validation.AbstractXmlValidator
org.frankframework.validation.XercesXmlValidator
- All Implemented Interfaces:
IConfigurationAware
,IScopeProvider
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
- Direct Known Subclasses:
XmlValidatorSender
Xerces based XML validator.
N.B. noNamespaceSchemaLocation may contain spaces, but not if the schema is stored in a .jar or .zip file on the class path.
- Author:
- Johan Verrips IOS, Jaco de Groot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.frankframework.validation.AbstractXmlValidator
AbstractXmlValidator.ValidationResult
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Disallow doctype declarations feature id (http://apache.org/xml/features/disallow-doctype-decl).protected static final String
External general entities feature id (http://xml.org/sax/features/external-general-entities).protected static final String
External paramter entities feature id (http://xml.org/sax/features/external-general-entities).static final String
Property identifier: grammar pool.protected static final String
Namespaces feature id (http://xml.org/sax/features/namespaces).protected static final String
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).protected static final String
Schema validation feature id (http://apache.org/xml/features/validation/schema).protected static final String
protected static final String
Validation feature id (http://xml.org/sax/features/validation).protected 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 XmlValidatorcreateValidatingParser
(PipeLineSession session, AbstractValidationContext context) org.frankframework.validation.XercesValidationContext
createValidationContext
(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) protected org.frankframework.validation.PreparseResult
getPreparseResult
(PipeLineSession session) static org.apache.xerces.util.SymbolTable
getValidatorHandler
(PipeLineSession session, AbstractValidationContext context) List<org.apache.xerces.xs.XSModel>
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
-
GRAMMAR_POOL
Property identifier: grammar pool.- See Also:
-
NAMESPACES_FEATURE_ID
Namespaces feature id (http://xml.org/sax/features/namespaces).- See Also:
-
VALIDATION_FEATURE_ID
Validation feature id (http://xml.org/sax/features/validation).- See Also:
-
SCHEMA_VALIDATION_FEATURE_ID
Schema validation feature id (http://apache.org/xml/features/validation/schema).- See Also:
-
EXTERNAL_GENERAL_ENTITIES_FEATURE_ID
External general entities feature id (http://xml.org/sax/features/external-general-entities).- See Also:
-
EXTERNAL_PARAMETER_ENTITIES_FEATURE_ID
External paramter entities feature id (http://xml.org/sax/features/external-general-entities).- See Also:
-
DISALLOW_DOCTYPE_DECL_FEATURE_ID
Disallow doctype declarations feature id (http://apache.org/xml/features/disallow-doctype-decl).- See Also:
-
SCHEMA_FULL_CHECKING_FEATURE_ID
Schema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).- See Also:
-
SECURITY_MANAGER_PROPERTY_ID
- See Also:
-
XML_SCHEMA_VERSION_PROPERTY
- See Also:
-
-
Constructor Details
-
XercesXmlValidator
public XercesXmlValidator()
-
-
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
-
getSymbolTableInstance
public static org.apache.xerces.util.SymbolTable getSymbolTableInstance() -
getPreparseResult
protected org.frankframework.validation.PreparseResult getPreparseResult(PipeLineSession session) throws ConfigurationException, PipeRunException -
createValidationContext
public org.frankframework.validation.XercesValidationContext 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 - Specified by:
getValidatorHandler
in classAbstractXmlValidator
- Throws:
ConfigurationException
-
createValidatingParser
public XMLReader createValidatingParser(PipeLineSession session, AbstractValidationContext context) throws XmlValidatorException - Throws:
XmlValidatorException
-
getXSModels
- Specified by:
getXSModels
in classAbstractXmlValidator
-