public class ParserSettings
extends java.lang.Object
Constructor and Description |
---|
ParserSettings()
Create a new ParserSettings with the defautl parser settings
|
ParserSettings(boolean strict,
boolean extensionAllowed,
boolean malformedXmlAllowed)
Create a new ParserSettings object
|
Modifier and Type | Method and Description |
---|---|
static ParserSettings |
getGlobalParserSettings()
Return the global parser settings in use.
|
boolean |
isExtensionAllowed() |
boolean |
isMalformedXmlAllowed() |
boolean |
isStrict() |
static void |
setGlobalParserSettings(ParserSettings parserSettings)
Set the global ParserSettings to match the given settings.
|
static ParserSettings |
setGlobalParserSettingsFromArgs(java.lang.String[] cmdArgs)
Return the ParserSettings to be used according to arguments specified
at boot on the command line.
|
public ParserSettings()
public ParserSettings(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed)
public boolean isExtensionAllowed()
public boolean isMalformedXmlAllowed()
public boolean isStrict()
public static ParserSettings getGlobalParserSettings()
public static void setGlobalParserSettings(ParserSettings parserSettings)
public static ParserSettings setGlobalParserSettingsFromArgs(java.lang.String[] cmdArgs)