Package net.sourceforge.jnlp
Class ParserSettings
- java.lang.Object
-
- net.sourceforge.jnlp.ParserSettings
-
public class ParserSettings extends java.lang.ObjectContains settings to be used by the Parser while parsing JNLP files. Immutable and therefore thread-safe.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanextensionAllowedprivate booleanisStrictprivate booleanmalformedXmlAllowed
-
Constructor Summary
Constructors Constructor Description ParserSettings()Create a new ParserSettings with the default parser settingsParserSettings(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed)Create a new ParserSettings object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ParserTypegetParserType()(package private) booleanisExtensionAllowed()(package private) booleanisStrict()
-
-
-
Constructor Detail
-
ParserSettings
public ParserSettings()
Create a new ParserSettings with the default parser settings
-
ParserSettings
public ParserSettings(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed)Create a new ParserSettings object- Parameters:
strict- true if parser should be strictextensionAllowed- true if extensions are allowedmalformedXmlAllowed- true if xml sanitizer should be used
-
-
Method Detail
-
isExtensionAllowed
boolean isExtensionAllowed()
- Returns:
- true if extensions to the spec are allowed
-
getParserType
ParserType getParserType()
- Returns:
- true if parsing malformed xml is allowed
-
isStrict
boolean isStrict()
- Returns:
- true if strict parsing mode is to be used
-
-