Package org.xmlunit.util
Class TransformerFactoryConfigurer.Builder
- java.lang.Object
-
- org.xmlunit.util.TransformerFactoryConfigurer.Builder
-
- Enclosing class:
- TransformerFactoryConfigurer
public static class TransformerFactoryConfigurer.Builder extends java.lang.ObjectBuilder for a TransformerFactoryConfigurer.- Since:
- XMLUnit 2.6.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>attributesprivate java.util.Map<java.lang.String,java.lang.Boolean>featuresprivate java.util.Map<java.lang.String,java.lang.Object>safeAttributesprivate java.util.Map<java.lang.String,java.lang.Boolean>safeFeatures
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformerFactoryConfigurerbuild()Builds a TransformerFactoryConfigurer.TransformerFactoryConfigurer.BuilderwithAttribute(java.lang.String key, java.lang.Object value)Configures the factory with the given attribute, causes an exception inTransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory)if the attribute is not supported.TransformerFactoryConfigurer.BuilderwithDTDLoadingDisabled()Configures the factory to not load any external DTDs.TransformerFactoryConfigurer.BuilderwithExternalStylesheetLoadingDisabled()Configures the factory to not parse any DTDs.TransformerFactoryConfigurer.BuilderwithFeature(java.lang.String key, boolean value)Configures the factory with the given feature, causes an exception inTransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory)if the feature is not supported.TransformerFactoryConfigurer.BuilderwithSafeAttribute(java.lang.String key, java.lang.Object value)Configures the factory with the given attribute if it is supported.TransformerFactoryConfigurer.BuilderwithSafeFeature(java.lang.String key, boolean value)Configures the factory with the given feature if it is supported.
-
-
-
Field Detail
-
attributes
private final java.util.Map<java.lang.String,java.lang.Object> attributes
-
safeAttributes
private final java.util.Map<java.lang.String,java.lang.Object> safeAttributes
-
features
private final java.util.Map<java.lang.String,java.lang.Boolean> features
-
safeFeatures
private final java.util.Map<java.lang.String,java.lang.Boolean> safeFeatures
-
-
Method Detail
-
build
public TransformerFactoryConfigurer build()
Builds a TransformerFactoryConfigurer.
-
withAttribute
public TransformerFactoryConfigurer.Builder withAttribute(java.lang.String key, java.lang.Object value)
Configures the factory with the given attribute, causes an exception inTransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory)if the attribute is not supported.
-
withSafeAttribute
public TransformerFactoryConfigurer.Builder withSafeAttribute(java.lang.String key, java.lang.Object value)
Configures the factory with the given attribute if it is supported.
-
withFeature
public TransformerFactoryConfigurer.Builder withFeature(java.lang.String key, boolean value)
Configures the factory with the given feature, causes an exception inTransformerFactoryConfigurer.configure(javax.xml.transform.TransformerFactory)if the feature is not supported.
-
withSafeFeature
public TransformerFactoryConfigurer.Builder withSafeFeature(java.lang.String key, boolean value)
Configures the factory with the given feature if it is supported.
-
withDTDLoadingDisabled
public TransformerFactoryConfigurer.Builder withDTDLoadingDisabled()
Configures the factory to not load any external DTDs.
-
withExternalStylesheetLoadingDisabled
public TransformerFactoryConfigurer.Builder withExternalStylesheetLoadingDisabled()
Configures the factory to not parse any DTDs.
-
-