Package org.frankframework.validation
Class XercesXmlValidator
java.lang.Object
org.frankframework.validation.AbstractXmlValidator
org.frankframework.validation.XercesXmlValidator
- All Implemented Interfaces:
FrankElement,HasApplicationContext,HasName,IScopeProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.Lifecycle
- 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
FieldsModifier and TypeFieldDescriptionprotected static final StringDisallow doctype declarations feature id (http://apache.org/xml/features/disallow-doctype-decl).protected static final StringExternal general entities feature id (http://xml.org/sax/features/external-general-entities).protected static final StringExternal paramter entities feature id (http://xml.org/sax/features/external-general-entities).static final StringProperty identifier: grammar pool.protected static final StringNamespaces feature id (http://xml.org/sax/features/namespaces).protected static final StringSchema full checking feature id (http://apache.org/xml/features/validation/schema-full-checking).protected static final StringSchema validation feature id (http://apache.org/xml/features/validation/schema).protected static final Stringprotected static final StringValidation feature id (http://xml.org/sax/features/validation).protected static 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 XmlValidatorcreateValidatingParser(PipeLineSession session, AbstractValidationContext context) org.frankframework.validation.XercesValidationContextcreateValidationContext(PipeLineSession session, RootValidations rootValidations, Map<List<String>, List<String>> invalidRootNamespaces) protected org.frankframework.validation.PreparseResultgetPreparseResult(PipeLineSession session) static org.apache.xerces.util.SymbolTablegetValidatorHandler(PipeLineSession session, AbstractValidationContext context) List<org.apache.xerces.xs.XSModel> 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
-
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: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
-
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:
createValidationContextin classAbstractXmlValidator- Throws:
ConfigurationExceptionPipeRunException
-
getValidatorHandler
public ValidatorHandler getValidatorHandler(PipeLineSession session, AbstractValidationContext context) throws ConfigurationException - Specified by:
getValidatorHandlerin classAbstractXmlValidator- Throws:
ConfigurationException
-
createValidatingParser
public XMLReader createValidatingParser(PipeLineSession session, AbstractValidationContext context) throws XmlValidatorException - Throws:
XmlValidatorException
-
getXSModels
- Specified by:
getXSModelsin classAbstractXmlValidator
-