Fields Summary |
---|
private final String | propertyproperty name. |
private final boolean | valueproperty value. |
private final DocumentBuilderSettingStrategy | strategystrategy used to set or get property value. |
public static final DocumentBuilderSetting | coalescingcoalescing = true. |
public static final DocumentBuilderSetting | notCoalescingcoalescing = false. |
public static final DocumentBuilderSetting | expandEntityReferencesexpandEntityReferences = false. |
public static final DocumentBuilderSetting | notExpandEntityReferencesexpandEntityReferences = true. |
public static final DocumentBuilderSetting | ignoringElementContentWhitespaceignoringElementContentWhitespace = true. |
public static final DocumentBuilderSetting | notIgnoringElementContentWhitespaceignoringElementContentWhitespace = false. |
public static final DocumentBuilderSetting | namespaceAwarenamespaceAware = true. |
public static final DocumentBuilderSetting | notNamespaceAwarenamespaceAware = false. |
public static final DocumentBuilderSetting | validatingvalidating = true. |
public static final DocumentBuilderSetting | notValidatingvalidating = false. |
public static final DocumentBuilderSetting | signedsigned = true. |
public static final DocumentBuilderSetting | notSignedsigned = false. |
public static final DocumentBuilderSetting | hasNullStringhasNullString = true. |
public static final DocumentBuilderSetting | notHasNullStringhasNullString = false. |
public static final DocumentBuilderSetting | schemaValidatingSchema validating enabled. |
public static final DocumentBuilderSetting | notSchemaValidatingSchema validating disabled. |
public static final DocumentBuilderSetting | ignoringCommentsComments ignored. |
public static final DocumentBuilderSetting | notIgnoringCommentsComments preserved. |
Methods Summary |
---|
public final void | applySetting(javax.xml.parsers.DocumentBuilderFactory factory)Attempts to change builder to have this setting.
strategy.applySetting(factory, value);
|
public final java.lang.String | getProperty()Gets the property name.
return property;
|
public final boolean | getValue()Gets the property value.
return value;
|
public final boolean | hasConflict(org.w3c.domts.DocumentBuilderSetting other)Returns true if the settings have a conflict or are identical.
if (other == null) {
throw new NullPointerException("other");
}
if (other == this) {
return true;
}
return strategy.hasConflict(other.strategy);
|
public final boolean | hasSetting(DOMTestDocumentBuilderFactory factory)Determines current value of setting.
return strategy.hasSetting(factory) == value;
|
public final java.lang.String | toString()Gets a string representation of the setting.
StringBuffer builder = new StringBuffer(property);
builder.append('=");
builder.append(String.valueOf(value));
return builder.toString();
|