public class XMLParserConfiguration extends Object
XMLSAXParser
.Modifier and Type | Field and Description |
---|---|
static short |
ALLOW_NESTABLE_CONNECTIONS
0: nestable connections are allowed.
|
short |
cachingType
The InputSource caching behavior.
|
boolean |
concatenateIncludes
True if xInclude content must be concatenated.
|
URL |
defaultBaseDir
The default base directory which will be used for relative URLs if the parent URL is unknown.
|
static short |
DONT_ALLOW_NESTABLE_CONNECTIONS
1: nestable connections are not allowed.
|
String |
encoding
The XML encoding.
|
String |
errorTitle
The parser error dialog title.
|
ParserExceptionListener |
exceptionListener
The parser exception listener.
|
boolean |
hasDefaultLSResolver
True if a default resource resolver should be set even if no resolver has been specified.
|
boolean |
hasSchemaValidator
True if the Parser uses a Schema Validator to validate XML files (true by default).
|
boolean |
isNameSpaceAware
True if the parser is namespace-aware.
|
boolean |
isShowingExceptions
True if the parser shows the exceptions encountered during the parsing.
|
boolean |
isShowingWarnings
True if the parser shows the warnings encountered during the parsing.
|
boolean |
isValidating
True if the parser is validating.
|
Locale |
locale
The default Locale for warnings and error messages.
|
short |
nestableConnectionsType
Specifies if nestable connections are allowed (ie, an xml file inside a zip file, for example).
|
EntityListResolver |
resolver
The EntityListResolver.
|
URL |
schemaURL
The optional Schema URL to use for Schema validation.
|
boolean |
xIncludeAware
True if the parser is XInclude-aware.
|
Constructor and Description |
---|
XMLParserConfiguration() |
Modifier and Type | Method and Description |
---|---|
Map<String,Boolean> |
getFeatures()
Return the parser factory features.
|
Map<String,Object> |
getProperties()
Return the parser properties.
|
void |
setFeature(String name,
boolean value)
Set a parser factory feature.
|
void |
setFeatures(Map<String,Boolean> features)
Set the parser factory features.
|
void |
setProperties(Map<String,Boolean> properties)
Set the parser properties.
|
void |
setProperty(String name,
Object value)
Set a parser property.
|
public static final short ALLOW_NESTABLE_CONNECTIONS
public static final short DONT_ALLOW_NESTABLE_CONNECTIONS
public String encoding
public EntityListResolver resolver
public boolean hasDefaultLSResolver
public short nestableConnectionsType
ALLOW_NESTABLE_CONNECTIONS
: nestable connections are allowedDONT_ALLOW_NESTABLE_CONNECTIONS
: nestable connections are not allowedpublic ParserExceptionListener exceptionListener
public boolean isNameSpaceAware
public boolean isValidating
public boolean hasSchemaValidator
public boolean xIncludeAware
public boolean concatenateIncludes
public boolean isShowingExceptions
public boolean isShowingWarnings
public String errorTitle
public Locale locale
public URL schemaURL
public URL defaultBaseDir
public short cachingType
public void setFeature(String name, boolean value)
name
- the feature namevalue
- the feature valuepublic void setFeatures(Map<String,Boolean> features)
features
- the featurespublic Map<String,Boolean> getFeatures()
public void setProperty(String name, Object value)
name
- the property namevalue
- the property valuepublic void setProperties(Map<String,Boolean> properties)
properties
- the properties