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() |
boolean |
isExtensionAllowed() |
boolean |
isMalformedXmlAllowed() |
boolean |
isStrict() |
static void |
setGlobalParserSettings(ParserSettings parserSettings)
Set the global ParserSettings to match the given settings.
|
static ParserSettings |
setGlobalParserSettingsFromOptionParser(net.sourceforge.jnlp.util.optionparser.OptionParser optionParser) |
public ParserSettings()
public ParserSettings(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed)
strict
- true if parser should be stricextensionAllowed
- true if extensions are allowedmalformedXmlAllowed
- true if xml sanitizer should be usedpublic boolean isExtensionAllowed()
public boolean isMalformedXmlAllowed()
public boolean isStrict()
public static ParserSettings getGlobalParserSettings()
public static void setGlobalParserSettings(ParserSettings parserSettings)
parserSettings
- to be usedpublic static ParserSettings setGlobalParserSettingsFromOptionParser(net.sourceforge.jnlp.util.optionparser.OptionParser optionParser)
optionParser
- to be read as source for globaPArserSettings