Class ParserSettings
java.lang.Object
net.sourceforge.jnlp.ParserSettings
Contains settings to be used by the Parser while parsing JNLP files.
Immutable and therefore thread-safe.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ParserSettings with the default parser settingsParserSettings(boolean strict, boolean extensionAllowed, boolean malformedXmlAllowed) Create a new ParserSettings object -
Method Summary
Modifier and TypeMethodDescription(package private) ParserType(package private) boolean(package private) booleanisStrict()
-
Field Details
-
isStrict
private final boolean isStrict -
extensionAllowed
private final boolean extensionAllowed -
malformedXmlAllowed
private final boolean malformedXmlAllowed
-
-
Constructor Details
-
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 Details
-
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
-