Class XmlDefinerUtils

java.lang.Object
eu.europa.esig.dss.jaxb.common.XmlDefinerUtils

public final class XmlDefinerUtils extends Object
Builds the objects for dealing with XML
  • Method Details

    • getInstance

      public static XmlDefinerUtils getInstance()
      Instantiate the XmlDefinerUtils
      Returns:
      XmlDefinerUtils
    • setDocumentBuilderFactoryBuilder

      public void setDocumentBuilderFactoryBuilder(DocumentBuilderFactoryBuilder documentBuilderFactoryBuilder)
      Sets a pre-configured builder to instantiate a DocumentBuilderFactory
      Parameters:
      documentBuilderFactoryBuilder - DocumentBuilderFactoryBuilder
    • getSecureDocumentBuilderFactory

      public DocumentBuilderFactory getSecureDocumentBuilderFactory()
      Returns a DocumentBuilderFactory with enabled security features
      Returns:
      DocumentBuilderFactory
    • getSchema

      public Schema getSchema(List<Source> xsdSources) throws SAXException
      Returns a Schema for a list of defined xsdSources
      Parameters:
      xsdSources - a list of Sources
      Returns:
      Schema
      Throws:
      SAXException - in case of exception
    • setSchemaFactoryBuilder

      public void setSchemaFactoryBuilder(SchemaFactoryBuilder schemaFactoryBuilder)
      Sets a pre-configured builder to instantiate a SchemaFactory
      Parameters:
      schemaFactoryBuilder - SchemaFactoryBuilder
    • getSecureSchemaFactory

      public SchemaFactory getSecureSchemaFactory()
      Returns a SchemaFactory with enabled security features (disabled external DTD/XSD + secure processing
      Returns:
      SchemaFactory
    • setTransformerFactoryBuilder

      public void setTransformerFactoryBuilder(TransformerFactoryBuilder transformerFactoryBuilder)
      Sets a pre-configured builder to instantiate a TransformerFactory
      Parameters:
      transformerFactoryBuilder - TransformerFactoryBuilder
    • getSecureTransformerFactory

      public TransformerFactory getSecureTransformerFactory()
      Returns a TransformerFactory with enabled security features (disabled external DTD/XSD + secure processing
      Returns:
      TransformerFactory
    • setValidatorConfigurator

      public void setValidatorConfigurator(ValidatorConfigurator validatorConfigurator)
      Sets a pre-configured builder to instantiate a Validator
      Parameters:
      validatorConfigurator - ValidatorConfigurator
    • configure

      public void configure(Validator validator)
      The method configures the validator
      Parameters:
      validator - the validator to be configured
    • postProcess

      public void postProcess(Validator validator)
      Post-processes the validator after the validation is executed
      Parameters:
      validator - Validator