public class XMLBuilderParametersImpl extends HierarchicalBuilderParametersImpl implements XMLBuilderProperties<XMLBuilderParametersImpl>
A specialized parameters class for XML configuration.
This parameters class defines some properties which allow customizing the parsing of XML documents. The location of the XML document to be loaded can be specified, too.
This class is not thread-safe. It is intended that an instance is constructed
and initialized by a single thread during configuration of a
ConfigurationBuilder
.
RESERVED_PARAMETER_PREFIX
Constructor and Description |
---|
XMLBuilderParametersImpl() |
Modifier and Type | Method and Description |
---|---|
EntityResolver |
getEntityResolver()
Returns the
EntityResolver stored in this parameters object. |
XMLBuilderParametersImpl |
setDocumentBuilder(DocumentBuilder docBuilder)
Allows setting the
DocumentBuilder for parsing an XML document. |
XMLBuilderParametersImpl |
setEntityResolver(EntityResolver resolver)
Allows setting the
EntityResolver which maps entity references
during XML parsing. |
XMLBuilderParametersImpl |
setPublicID(String pubID)
Sets the public ID of the DOCTYPE declaration.
|
XMLBuilderParametersImpl |
setSchemaValidation(boolean f)
Sets the value of the schemaValidation flag.
|
XMLBuilderParametersImpl |
setSystemID(String sysID)
Sets the system ID of the DOCTYPE declaration.
|
XMLBuilderParametersImpl |
setValidating(boolean f)
Sets a flag whether schema/DTD validation should be performed.
|
setExpressionEngine
clone, fromMap, fromParameters, fromParameters, getFileHandler, getParameters, getReloadingDetectorFactory, getReloadingRefreshDelay, setBasePath, setEncoding, setFile, setFileName, setFileSystem, setLocationStrategy, setPath, setReloadingDetectorFactory, setReloadingRefreshDelay, setURL
fetchBeanHelper, fetchInterpolatorSpecification, fetchProperty, merge, setBeanHelper, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setSynchronizer, setThrowExceptionOnMissing, storeProperty
public XMLBuilderParametersImpl setDocumentBuilder(DocumentBuilder docBuilder)
XMLBuilderProperties
DocumentBuilder
for parsing an XML document.
This is the most flexible way of customizing XML processing.setDocumentBuilder
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
docBuilder
- the DocumentBuilder
to usepublic XMLBuilderParametersImpl setEntityResolver(EntityResolver resolver)
XMLBuilderProperties
EntityResolver
which maps entity references
during XML parsing.setEntityResolver
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
resolver
- the EntityResolver
to usepublic EntityResolver getEntityResolver()
EntityResolver
stored in this parameters object.
Result is null if no such object has been set.EntityResolver
or nullpublic XMLBuilderParametersImpl setPublicID(String pubID)
XMLBuilderProperties
setPublicID
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
pubID
- the public IDpublic XMLBuilderParametersImpl setSystemID(String sysID)
XMLBuilderProperties
setSystemID
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
sysID
- the system IDpublic XMLBuilderParametersImpl setValidating(boolean f)
XMLBuilderProperties
setValidating
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
f
- the validation flagpublic XMLBuilderParametersImpl setSchemaValidation(boolean f)
XMLBuilderProperties
setSchemaValidation
in interface XMLBuilderProperties<XMLBuilderParametersImpl>
f
- the flag value, true for schema validation, false
for DTD validationCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.