Package eu.europa.esig.dss.jaxb
Class AbstractFactoryBuilder<F>
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractFactoryBuilder<F>
- Direct Known Subclasses:
SchemaFactoryBuilder
,TransformerFactoryBuilder
,ValidatorConfigurator
public abstract class AbstractFactoryBuilder<F> extends Object
-
Constructor Summary
Constructors Constructor Description AbstractFactoryBuilder()
-
Method Summary
Modifier and Type Method Description AbstractFactoryBuilder<F>
disableFeature(String feature)
Disables a custom featureAbstractFactoryBuilder<F>
enableFeature(String feature)
Enables a custom featureAbstractFactoryBuilder<F>
removeAttribute(String attribute)
Removes the attribute from a list of attributes to setAbstractFactoryBuilder<F>
setAttribute(String attribute, Object value)
Sets a custom attribute.protected abstract void
setSecurityAttribute(F factory, String attribute, Object value)
Sets the attribute to the factoryprotected void
setSecurityAttributes(F factory)
Sets all attributes to the factoryvoid
setSecurityExceptionAlert(StatusAlert securityExceptionAlert)
This method allows to configure a custom alert on security exception in the builderprotected abstract void
setSecurityFeature(F factory, String feature, Boolean value)
Sets the feature to the factoryprotected void
setSecurityFeatures(F factory)
Sets all features to the factory
-
Constructor Details
-
AbstractFactoryBuilder
public AbstractFactoryBuilder()
-
-
Method Details
-
setSecurityExceptionAlert
This method allows to configure a custom alert on security exception in the builder- Parameters:
securityExceptionAlert
-StatusAlert
to define
-
enableFeature
Enables a custom feature- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
disableFeature
Disables a custom feature- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
setAttribute
Sets a custom attribute. -
removeAttribute
Removes the attribute from a list of attributes to set- Parameters:
attribute
-String
attribute to disable- Returns:
- this builder
-
setSecurityFeatures
Sets all features to the factory -
setSecurityFeature
protected abstract void setSecurityFeature(F factory, String feature, Boolean value) throws ExceptionSets the feature to the factory -
setSecurityAttributes
Sets all attributes to the factory -
setSecurityAttribute
protected abstract void setSecurityAttribute(F factory, String attribute, Object value) throws ExceptionSets the attribute to the factory
-