Package com.helger.xml.serialize.read
Interface IDOMReaderSettings
-
- All Superinterfaces:
IBaseXMLReaderSettings
- All Known Implementing Classes:
DOMReaderSettings
public interface IDOMReaderSettings extends IBaseXMLReaderSettings
Read-only interface for DOM reader settings.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyToDocumentBuilder(DocumentBuilder aDB)Apply settings of this object onto the specifiedDocumentBuilderobject.voidapplyToDocumentBuilderFactory(DocumentBuilderFactory aDBF)Apply settings of this object onto the specifiedDocumentBuilderFactoryobject.SchemagetSchema()booleanisCoalescing()booleanisExpandEntityReferences()booleanisIgnoringComments()booleanisIgnoringElementContentWhitespace()booleanisNamespaceAware()booleanisRequiresNewXMLParserExplicitly()booleanisValidating()booleanisXIncludeAware()booleanrequiresNewXMLParser()Check if the current settings require a separateDocumentBuilderFactoryor if a pooled default object can be used.-
Methods inherited from interface com.helger.xml.serialize.read.IBaseXMLReaderSettings
exceptionCallbacks, getAllFeatureValues, getAllPropertyValues, getEntityResolver, getErrorHandler, getFeatureValue, getLocale, getPropertyValue, hasAnyFeature, hasAnyProperties
-
-
-
-
Method Detail
-
isNamespaceAware
boolean isNamespaceAware()
- Returns:
trueif the parser should be namespace aware,falseif not.
-
isValidating
boolean isValidating()
- Returns:
trueif the parser should be validating,falseif not.
-
isIgnoringElementContentWhitespace
boolean isIgnoringElementContentWhitespace()
- Returns:
trueif the parser should be element content whitespace ignoring,falseif not.
-
isExpandEntityReferences
boolean isExpandEntityReferences()
- Returns:
trueif the parser should expand entity references,falseif not.
-
isIgnoringComments
boolean isIgnoringComments()
- Returns:
trueif the parser should ignore comments,falseif not.
-
isCoalescing
boolean isCoalescing()
- Returns:
trueif the parser should read CDATA as text,falseif not.
-
getSchema
@Nullable Schema getSchema()
- Returns:
- A special XML schema to be used or
nullif none should be used.
-
isXIncludeAware
boolean isXIncludeAware()
- Returns:
trueif the parser should be XInclude aware,falseif not.
-
isRequiresNewXMLParserExplicitly
boolean isRequiresNewXMLParserExplicitly()
- Returns:
trueif a new XML parser is explicitly required for this instance.
-
requiresNewXMLParser
boolean requiresNewXMLParser()
Check if the current settings require a separateDocumentBuilderFactoryor if a pooled default object can be used.- Specified by:
requiresNewXMLParserin interfaceIBaseXMLReaderSettings- Returns:
trueif a separateDocumentBuilderFactoryis required,falseif not.
-
applyToDocumentBuilderFactory
void applyToDocumentBuilderFactory(@Nonnull DocumentBuilderFactory aDBF)
Apply settings of this object onto the specifiedDocumentBuilderFactoryobject.- Parameters:
aDBF- TheDocumentBuilderFactoryto apply the settings onto. May not benull.
-
applyToDocumentBuilder
void applyToDocumentBuilder(@Nonnull DocumentBuilder aDB)
Apply settings of this object onto the specifiedDocumentBuilderobject.- Parameters:
aDB- TheDocumentBuilderto apply the settings onto. May not benull.
-
-