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 SchemaFactory
build()
Builds the configuredTransformerFactory
SchemaFactoryBuilder
disableFeature(String feature)
Disables a custom featureSchemaFactoryBuilder
enableFeature(String feature)
Enables a custom featurestatic SchemaFactoryBuilder
getSecureSchemaBuilder()
Instantiates a pre-configured with security featuresSchemaFactoryBuilder
SchemaFactoryBuilder
removeAttribute(String attribute)
Removes the attribute from a list of attributes to setSchemaFactoryBuilder
setAttribute(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.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 instantiateSchemaFactory
with- Parameters:
schemaLanguage
-String
defined the schema language to use
-
enableFeature
Description copied from class:AbstractFactoryBuilder
Enables a custom feature- Overrides:
enableFeature
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
disableFeature
Description copied from class:AbstractFactoryBuilder
Disables a custom feature- Overrides:
disableFeature
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
feature
-String
the feature constraint- Returns:
- this builder
-
setAttribute
Description copied from class:AbstractFactoryBuilder
Sets a custom attribute.- Overrides:
setAttribute
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
attribute
-String
attribute constraint to setvalue
-Object
a value to define for the attribute- Returns:
- this builder
-
removeAttribute
Description copied from class:AbstractFactoryBuilder
Removes the attribute from a list of attributes to set- Overrides:
removeAttribute
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
attribute
-String
attribute to disable- Returns:
- this builder
-
setSecurityFeature
protected void setSecurityFeature(SchemaFactory factory, String feature, Boolean value) throws ExceptionDescription copied from class:AbstractFactoryBuilder
Sets the feature to the factory- Specified by:
setSecurityFeature
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
factory
- to set the feature tofeature
-String
feature constraint to setvalue
-Boolean
value 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:AbstractFactoryBuilder
Sets the attribute to the factory- Specified by:
setSecurityAttribute
in classAbstractFactoryBuilder<SchemaFactory>
- Parameters:
factory
-Factory
to set the attribute toattribute
-String
attribute constraint to setvalue
-Object
value of the attribute to add- Throws:
Exception
- in case if any exception occurs
-