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.Object
Builder 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>
attributes
private java.util.Map<java.lang.String,java.lang.Boolean>
features
private java.util.Map<java.lang.String,java.lang.Object>
safeAttributes
private 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 TransformerFactoryConfigurer
build()
Builds a TransformerFactoryConfigurer.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.TransformerFactoryConfigurer.Builder
withDTDLoadingDisabled()
Configures the factory to not load any external DTDs.TransformerFactoryConfigurer.Builder
withExternalStylesheetLoadingDisabled()
Configures the factory to not parse any DTDs.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.TransformerFactoryConfigurer.Builder
withSafeAttribute(java.lang.String key, java.lang.Object value)
Configures the factory with the given attribute if it is supported.TransformerFactoryConfigurer.Builder
withSafeFeature(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.
-
-