Package eu.europa.esig.dss.jaxb
Class SchemaFactoryBuilder
java.lang.Object
eu.europa.esig.dss.jaxb.AbstractFactoryBuilder<SchemaFactory>
eu.europa.esig.dss.jaxb.SchemaFactoryBuilder
public class SchemaFactoryBuilder extends AbstractFactoryBuilder<SchemaFactory>
-
Method Summary
Modifier and Type Method Description SchemaFactorybuild()Builds the configuredTransformerFactorySchemaFactoryBuilderdisableFeature(String feature)Disables a custom featureSchemaFactoryBuilderenableFeature(String feature)Enables a custom featurestatic SchemaFactoryBuildergetSecureSchemaBuilder()Instantiates a pre-configured with security featuresSchemaFactoryBuilderSchemaFactoryBuilderremoveAttribute(String attribute)Removes the attribute from a list of attributes to setSchemaFactoryBuildersetAttribute(String attribute, Object value)Sets a custom attribute.voidsetSchemaLanguage(String schemaLanguage)Sets a schemaLanguage to instantiateSchemaFactorywithprotected voidsetSecurityAttribute(SchemaFactory factory, String attribute, Object value)Sets the attribute to the factoryprotected voidsetSecurityFeature(SchemaFactory factory, String feature, Boolean value)Sets the feature to the factoryMethods inherited from class eu.europa.esig.dss.jaxb.AbstractFactoryBuilder
setSecurityAttributes, setSecurityExceptionAlert, setSecurityFeatures
-
Method Details
-
getSecureSchemaBuilder
Instantiates a pre-configured with security featuresSchemaFactoryBuilder- Returns:
- default
SchemaFactoryBuilder
-
build
Builds the configuredTransformerFactory- Returns:
TransformerFactory
-
setSchemaLanguage
Sets a schemaLanguage to instantiateSchemaFactorywith- Parameters:
schemaLanguage-Stringdefined the schema language to use
-
enableFeature
Description copied from class:AbstractFactoryBuilderEnables a custom feature- Overrides:
enableFeaturein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractFactoryBuilderDisables a custom feature- Overrides:
disableFeaturein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
feature-Stringthe feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractFactoryBuilderSets a custom attribute.- Overrides:
setAttributein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
attribute-Stringattribute constraint to setvalue-Objecta value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractFactoryBuilderRemoves the attribute from a list of attributes to set- Overrides:
removeAttributein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
attribute-Stringattribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(SchemaFactory factory, String feature, Boolean value) throws ExceptionDescription copied from class:AbstractFactoryBuilderSets the feature to the factory- Specified by:
setSecurityFeaturein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
factory- to set the feature tofeature-Stringfeature constraint to setvalue-Booleanvalue of the feature to add- Throws:
Exception- in case if any exception occurs
-
setSecurityAttribute
protected void setSecurityAttribute(SchemaFactory factory, String attribute, Object value) throws ExceptionDescription copied from class:AbstractFactoryBuilderSets the attribute to the factory- Specified by:
setSecurityAttributein classAbstractFactoryBuilder<SchemaFactory>- Parameters:
factory-Factoryto set the attribute toattribute-Stringattribute constraint to setvalue-Objectvalue of the attribute to add- Throws:
Exception- in case if any exception occurs
-