org.w3c.domts
Class DocumentBuilderSetting
java.lang.Object
org.w3c.domts.DocumentBuilderSetting
public final class DocumentBuilderSetting
extends java.lang.Object
This class is an parser setting, such as non-validating or entity-expanding.
expandEntityReferences
public static final DocumentBuilderSetting expandEntityReferences
expandEntityReferences = false.
ignoringElementContentWhitespace
public static final DocumentBuilderSetting ignoringElementContentWhitespace
ignoringElementContentWhitespace = true.
notExpandEntityReferences
public static final DocumentBuilderSetting notExpandEntityReferences
expandEntityReferences = true.
notIgnoringElementContentWhitespace
public static final DocumentBuilderSetting notIgnoringElementContentWhitespace
ignoringElementContentWhitespace = false.
DocumentBuilderSetting
protected DocumentBuilderSetting(String property,
boolean value,
DocumentBuilderSettingStrategy strategy)
Protected constructor, use static members for supported settings.
property
- property name, follows JAXP.value
- property valuestrategy
- strategy, may not be null
applySetting
public final void applySetting(DocumentBuilderFactory factory)
throws DOMTestIncompatibleException
Attempts to change builder to have this setting.
factory
- DocumentBuilderFactory Factory for DOM builders
getProperty
public final String getProperty()
Gets the property name.
getValue
public final boolean getValue()
Gets the property value.
hasConflict
public final boolean hasConflict(DocumentBuilderSetting other)
Returns true if the settings have a conflict or are identical.
other
- other setting, may not be null.
- true if this setting and the specified setting conflict
hasSetting
public final boolean hasSetting(DOMTestDocumentBuilderFactory factory)
Determines current value of setting.
factory
- DOMTestDocumentBuilderFactory factory
- boolean true if property enabled.
toString
public final String toString()
Gets a string representation of the setting.