Package eu.europa.esig.dss.jaxb
Class XmlDefinerUtils
java.lang.Object
eu.europa.esig.dss.jaxb.XmlDefinerUtils
public final class XmlDefinerUtils extends Object
-
Constructor Summary
Constructors Constructor Description XmlDefinerUtils() -
Method Summary
Modifier and Type Method Description voidconfigure(Validator validator)The method configures the validatorstatic XmlDefinerUtilsgetInstance()Instantiate theXmlDefinerUtilsSchemagetSchema(List<Source> xsdSources)Returns a Schema for a list of defined xsdSourcesSchemaFactorygetSecureSchemaFactory()Returns a SchemaFactory with enabled security features (disabled external DTD/XSD + secure processingTransformerFactorygetSecureTransformerFactory()Returns a TransformerFactory with enabled security features (disabled external DTD/XSD + secure processingvoidsetSchemaFactoryBuilder(SchemaFactoryBuilder schemaFactoryBuilder)Sets a pre-configured builder to instantiate aSchemaFactoryvoidsetTransformerFactoryBuilder(TransformerFactoryBuilder transformerFactoryBuilder)Sets a pre-configured builder to instantiate aTransformerFactoryvoidsetValidatorConfigurator(ValidatorConfigurator validatorConfigurator)Sets a pre-configured builder to instantiate aValidator
-
Constructor Details
-
XmlDefinerUtils
public XmlDefinerUtils()
-
-
Method Details
-
getInstance
Instantiate theXmlDefinerUtils- Returns:
XmlDefinerUtils
-
getSchema
Returns a Schema for a list of defined xsdSources- Parameters:
xsdSources- a list ofSources- 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- Throws:
SAXException- in case of exception
-
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- Throws:
SAXException- in case of exception
-