Package org.xmlunit.util
Class DocumentBuilderFactoryConfigurer.Builder
java.lang.Object
org.xmlunit.util.DocumentBuilderFactoryConfigurer.Builder
- Enclosing class:
DocumentBuilderFactoryConfigurer
Builder for a DocumentBuilderFactoryConfigurer.
- Since:
- XMLUnit 2.6.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a DocumentBuilderFactoryConfigurer.withAttribute
(String key, Object value) Configures the factory with the given attribute, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)
if the attribute is not supported.Configures the factory to not load any external DTDs.Configures the factory to not parse any DTDs.withExpandEntityReferences
(boolean b) Configure whether the factory's expands entity references.withFeature
(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.withSafeAttribute
(String key, Object value) Configures the factory with the given attribute if it is supported.withSafeFeature
(String key, boolean value) Configures the factory with the given feature if it is supported.withXIncludeAware
(boolean b) Configure the factory's XInclude awareness.
-
Field Details
-
attributes
-
safeAttributes
-
features
-
safeFeatures
-
xIncludeAware
private boolean xIncludeAware -
expandEntityRefs
private boolean expandEntityRefs -
DTD_LOAD_DISABLERS
-
DTD_PARSE_DISABLERS
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds a DocumentBuilderFactoryConfigurer. -
withAttribute
Configures the factory with the given attribute, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)
if the attribute is not supported. -
withSafeAttribute
Configures the factory with the given attribute if it is supported. -
withFeature
Configures the factory with the given feature, causes an exception inDocumentBuilderFactoryConfigurer.configure(javax.xml.parsers.DocumentBuilderFactory)
if the feature is not supported. -
withSafeFeature
Configures the factory with the given feature if it is supported. -
withDTDLoadingDisabled
Configures the factory to not load any external DTDs. -
withDTDParsingDisabled
Configures the factory to not parse any DTDs. -
withXIncludeAware
Configure the factory's XInclude awareness. -
withExpandEntityReferences
Configure whether the factory's expands entity references.
-