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. |
void |
inheritFrom(Map<String,?> source)
Inherits properties from the specified map.
|
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.
|
setExpressionEngineclone, fromMap, fromParameters, fromParameters, getFileHandler, getParameters, getReloadingDetectorFactory, getReloadingRefreshDelay, setBasePath, setEncoding, setFile, setFileName, setFileSystem, setLocationStrategy, setPath, setReloadingDetectorFactory, setReloadingRefreshDelay, setURL, setURLcopyPropertiesFrom, fetchBeanHelper, fetchInterpolatorSpecification, fetchProperty, merge, setBeanHelper, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setSynchronizer, setThrowExceptionOnMissing, storePropertypublic XMLBuilderParametersImpl()
public void inheritFrom(Map<String,?> source)
HierarchicalBuilderParametersImplConfigurationInterpolator - are
tightly connected to a configuration and cannot be reused in a different context. For other properties, e.g. a file
name, it does not make sense to copy it. Therefore, an implementation has to be explicit in the properties it wants
to take over. This implementation takes some properties defined in this class into account. This implementation copies some more properties defined by this class.inheritFrom in class HierarchicalBuilderParametersImplsource - the source properties to inherit frompublic XMLBuilderParametersImpl setDocumentBuilder(DocumentBuilder docBuilder)
XMLBuilderPropertiesDocumentBuilder 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)
XMLBuilderPropertiesEntityResolver 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)
XMLBuilderPropertiessetPublicID in interface XMLBuilderProperties<XMLBuilderParametersImpl>pubID - the public IDpublic XMLBuilderParametersImpl setSystemID(String sysID)
XMLBuilderPropertiessetSystemID in interface XMLBuilderProperties<XMLBuilderParametersImpl>sysID - the system IDpublic XMLBuilderParametersImpl setValidating(boolean f)
XMLBuilderPropertiessetValidating in interface XMLBuilderProperties<XMLBuilderParametersImpl>f - the validation flagpublic XMLBuilderParametersImpl setSchemaValidation(boolean f)
XMLBuilderPropertiessetSchemaValidation in interface XMLBuilderProperties<XMLBuilderParametersImpl>f - the flag value, true for schema validation, false for DTD validationCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.