Package org.xmlunit.util
Class DocumentBuilderFactoryConfigurer.Builder
- java.lang.Object
-
- org.xmlunit.util.DocumentBuilderFactoryConfigurer.Builder
-
- Enclosing class:
- DocumentBuilderFactoryConfigurer
public static class DocumentBuilderFactoryConfigurer.Builder extends java.lang.ObjectBuilder for a DocumentBuilderFactoryConfigurer.- Since:
- XMLUnit 2.6.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>attributesprivate static java.util.List<java.lang.String>DTD_LOAD_DISABLERSprivate static java.util.List<java.lang.String>DTD_PARSE_DISABLERSprivate booleanexpandEntityRefsprivate 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>safeFeaturesprivate booleanxIncludeAware
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentBuilderFactoryConfigurerbuild()Builds a DocumentBuilderFactoryConfigurer.DocumentBuilderFactoryConfigurer.BuilderwithAttribute(java.lang.String key, java.lang.Object value)Configures the factory with the given attribute, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)if the attribute is not supported.DocumentBuilderFactoryConfigurer.BuilderwithDTDLoadingDisabled()Configures the factory to not load any external DTDs.DocumentBuilderFactoryConfigurer.BuilderwithDTDParsingDisabled()Configures the factory to not parse any DTDs.DocumentBuilderFactoryConfigurer.BuilderwithExpandEntityReferences(boolean b)Configure whether the factory's expands entity references.DocumentBuilderFactoryConfigurer.BuilderwithFeature(java.lang.String key, boolean value)Configures the factory with the given feature, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)if the feature is not supported.DocumentBuilderFactoryConfigurer.BuilderwithSafeAttribute(java.lang.String key, java.lang.Object value)Configures the factory with the given attribute if it is supported.DocumentBuilderFactoryConfigurer.BuilderwithSafeFeature(java.lang.String key, boolean value)Configures the factory with the given feature if it is supported.DocumentBuilderFactoryConfigurer.BuilderwithXIncludeAware(boolean b)Configure the factory's XInclude awareness.
-
-
-
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
-
xIncludeAware
private boolean xIncludeAware
-
expandEntityRefs
private boolean expandEntityRefs
-
DTD_LOAD_DISABLERS
private static final java.util.List<java.lang.String> DTD_LOAD_DISABLERS
-
DTD_PARSE_DISABLERS
private static final java.util.List<java.lang.String> DTD_PARSE_DISABLERS
-
-
Method Detail
-
build
public DocumentBuilderFactoryConfigurer build()
Builds a DocumentBuilderFactoryConfigurer.
-
withAttribute
public DocumentBuilderFactoryConfigurer.Builder withAttribute(java.lang.String key, java.lang.Object value)
Configures the factory with the given attribute, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)if the attribute is not supported.
-
withSafeAttribute
public DocumentBuilderFactoryConfigurer.Builder withSafeAttribute(java.lang.String key, java.lang.Object value)
Configures the factory with the given attribute if it is supported.
-
withFeature
public DocumentBuilderFactoryConfigurer.Builder withFeature(java.lang.String key, boolean value)
Configures the factory with the given feature, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)if the feature is not supported.
-
withSafeFeature
public DocumentBuilderFactoryConfigurer.Builder withSafeFeature(java.lang.String key, boolean value)
Configures the factory with the given feature if it is supported.
-
withDTDLoadingDisabled
public DocumentBuilderFactoryConfigurer.Builder withDTDLoadingDisabled()
Configures the factory to not load any external DTDs.
-
withDTDParsingDisabled
public DocumentBuilderFactoryConfigurer.Builder withDTDParsingDisabled()
Configures the factory to not parse any DTDs.
-
withXIncludeAware
public DocumentBuilderFactoryConfigurer.Builder withXIncludeAware(boolean b)
Configure the factory's XInclude awareness.
-
withExpandEntityReferences
public DocumentBuilderFactoryConfigurer.Builder withExpandEntityReferences(boolean b)
Configure whether the factory's expands entity references.
-
-