Package eu.europa.esig.dss.xml.common
Class XmlDefinerUtils
java.lang.Object
eu.europa.esig.dss.xml.common.XmlDefinerUtils
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The method configures the validatorstatic XmlDefinerUtils
Instantiate theXmlDefinerUtils
Returns a Schema for a list of defined xsdSourcesReturns a DocumentBuilderFactory with enabled security featuresReturns a SchemaFactory with enabled security features (disabled external DTD/XSD + secure processingReturns a TransformerFactory with enabled security features (disabled external DTD/XSD + secure processingvoid
postProcess
(Validator validator) Post-processes the validator after the validation is executedvoid
setDocumentBuilderFactoryBuilder
(DocumentBuilderFactoryBuilder documentBuilderFactoryBuilder) Sets a pre-configured builder to instantiate aDocumentBuilderFactory
void
setSchemaFactoryBuilder
(SchemaFactoryBuilder schemaFactoryBuilder) Sets a pre-configured builder to instantiate aSchemaFactory
void
setTransformerFactoryBuilder
(TransformerFactoryBuilder transformerFactoryBuilder) Sets a pre-configured builder to instantiate aTransformerFactory
void
setValidatorConfigurator
(ValidatorConfigurator validatorConfigurator) Sets a pre-configured builder to instantiate aValidator
-
Method Details
-
getInstance
Instantiate theXmlDefinerUtils
- Returns:
XmlDefinerUtils
-
setDocumentBuilderFactoryBuilder
public void setDocumentBuilderFactoryBuilder(DocumentBuilderFactoryBuilder documentBuilderFactoryBuilder) Sets a pre-configured builder to instantiate aDocumentBuilderFactory
- Parameters:
documentBuilderFactoryBuilder
-DocumentBuilderFactoryBuilder
-
getSecureDocumentBuilderFactory
Returns a DocumentBuilderFactory with enabled security features- Returns:
DocumentBuilderFactory
-
getSchema
Returns a Schema for a list of defined xsdSources- Parameters:
xsdSources
- a list ofSource
s- Returns:
Schema
- Throws:
SAXException
- in case of exception
-
setSchemaFactoryBuilder
Sets a pre-configured builder to instantiate aSchemaFactory
- Parameters:
schemaFactoryBuilder
-SchemaFactoryBuilder
-
getSecureSchemaFactory
Returns a SchemaFactory with enabled security features (disabled external DTD/XSD + secure processing- Returns:
SchemaFactory
-
setTransformerFactoryBuilder
Sets a pre-configured builder to instantiate aTransformerFactory
- Parameters:
transformerFactoryBuilder
-TransformerFactoryBuilder
-
getSecureTransformerFactory
Returns a TransformerFactory with enabled security features (disabled external DTD/XSD + secure processing- Returns:
TransformerFactory
-
setValidatorConfigurator
Sets a pre-configured builder to instantiate aValidator
- Parameters:
validatorConfigurator
-ValidatorConfigurator
-
configure
The method configures the validator- Parameters:
validator
- the validator to be configured
-
postProcess
-