Class ParserSettings

java.lang.Object
net.sourceforge.jnlp.ParserSettings

public class ParserSettings extends Object
Contains settings to be used by the Parser while parsing JNLP files. Immutable and therefore thread-safe.
  • 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 strict
      extensionAllowed - true if extensions are allowed
      malformedXmlAllowed - 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