Package eu.europa.esig.dss.jaxb.common
Class SchemaFactoryBuilder
java.lang.Object
eu.europa.esig.dss.jaxb.common.AbstractConfigurator<F>
eu.europa.esig.dss.jaxb.common.AbstractFactoryBuilder<SchemaFactory>
eu.europa.esig.dss.jaxb.common.SchemaFactoryBuilder
Builds a
SchemaFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configuredTransformerFactory
disableFeature
(String feature) Disables a custom featureenableFeature
(String feature) Enables a custom featurestatic SchemaFactoryBuilder
Instantiates a pre-configured with security featuresSchemaFactoryBuilder
protected SchemaFactory
This method instantiates the corresponding factory.removeAttribute
(String attribute) Removes the attribute from a list of attributes to setsetAttribute
(String attribute, Object value) Sets a custom attribute.void
setSchemaLanguage
(String schemaLanguage) Sets a schemaLanguage to instantiateSchemaFactory
withprotected void
setSecurityAttribute
(SchemaFactory factory, String attribute, Object value) Sets the attribute to the factoryprotected void
setSecurityFeature
(SchemaFactory factory, String feature, Boolean value) Sets the feature to the factoryMethods inherited from class eu.europa.esig.dss.jaxb.common.AbstractConfigurator
setSecurityAttributes, setSecurityExceptionAlert, setSecurityFeatures
-
Constructor Details
-
SchemaFactoryBuilder
protected SchemaFactoryBuilder()Default constructor
-
-
Method Details
-
getSecureSchemaBuilder
Instantiates a pre-configured with security featuresSchemaFactoryBuilder
- Returns:
- default
SchemaFactoryBuilder
-
build
Builds the configuredTransformerFactory
- Returns:
TransformerFactory
-
instantiateFactory
Description copied from class:AbstractFactoryBuilder
This method instantiates the corresponding factory. NOTE: in order to change the default behavior, the related class and the current method should be overridden- Specified by:
instantiateFactory
in classAbstractFactoryBuilder<SchemaFactory>
- Returns:
- factory
-
setSchemaLanguage
Sets a schemaLanguage to instantiateSchemaFactory
with- Parameters:
schemaLanguage
-String
defined the schema language to use
-
enableFeature
Description copied from class:AbstractConfigurator
Enables a custom feature- Overrides:
enableFeature
in classAbstractConfigurator<SchemaFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractConfigurator
Disables a custom feature- Overrides:
disableFeature
in classAbstractConfigurator<SchemaFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractConfigurator
Sets a custom attribute.- Overrides:
setAttribute
in classAbstractConfigurator<SchemaFactory>
- Parameters:
attribute
-String
attribute constraint to setvalue
-Object
a value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractConfigurator
Removes the attribute from a list of attributes to set- Overrides:
removeAttribute
in classAbstractConfigurator<SchemaFactory>
- Parameters:
attribute
-String
attribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(SchemaFactory factory, String feature, Boolean value) throws SecurityConfigurationException Description copied from class:AbstractConfigurator
Sets the feature to the factory- Specified by:
setSecurityFeature
in classAbstractConfigurator<SchemaFactory>
- Parameters:
factory
- to set the feature tofeature
-String
feature constraint to setvalue
-Boolean
value of the feature to add- Throws:
SecurityConfigurationException
- in case if any exception occurs
-
setSecurityAttribute
protected void setSecurityAttribute(SchemaFactory factory, String attribute, Object value) throws SecurityConfigurationException Description copied from class:AbstractConfigurator
Sets the attribute to the factory- Specified by:
setSecurityAttribute
in classAbstractConfigurator<SchemaFactory>
- Parameters:
factory
-Factory
to set the attribute toattribute
-String
attribute constraint to setvalue
-Object
value of the attribute to add- Throws:
SecurityConfigurationException
- in case if any exception occurs
-