Class LagartoParserConfig

java.lang.Object
jodd.lagarto.LagartoParserConfig

public class LagartoParserConfig extends Object
Configuration for LagartoParser.
  • Field Details

    • parseXmlTags

      protected boolean parseXmlTags
    • enableConditionalComments

      protected boolean enableConditionalComments
    • caseSensitive

      protected boolean caseSensitive
    • calculatePosition

      protected boolean calculatePosition
    • enableRawTextModes

      protected boolean enableRawTextModes
    • textBufferSize

      protected int textBufferSize
    • decodeHtmlEntities

      protected boolean decodeHtmlEntities
  • Constructor Details

    • LagartoParserConfig

      public LagartoParserConfig()
  • Method Details

    • isEnableConditionalComments

      public boolean isEnableConditionalComments()
      See Also:
    • setEnableConditionalComments

      public LagartoParserConfig setEnableConditionalComments(boolean enableConditionalComments)
      Enables detection of IE conditional comments. If not enabled, downlevel-hidden cond. comments will be treated as regular comment, while revealed cond. comments will be treated as an error.
    • isParseXmlTags

      public boolean isParseXmlTags()
      Returns true if parsing of XML tags is enabled.
    • setParseXmlTags

      public LagartoParserConfig setParseXmlTags(boolean parseXmlTags)
      Enables parsing of XML tags.
    • isCaseSensitive

      public boolean isCaseSensitive()
      Returns true if case-sensitive flag is enabled.
    • setCaseSensitive

      public LagartoParserConfig setCaseSensitive(boolean caseSensitive)
      Sets the case-sensitive flag for various matching.
    • isCalculatePosition

      public boolean isCalculatePosition()
      See Also:
    • setCalculatePosition

      public LagartoParserConfig setCalculatePosition(boolean calculatePosition)
      Resolves current position on parsing errors and for DOM elements. Note: this makes processing SLOW! JFlex may be used to track current line and row, but that brings overhead, and can't be easily disabled. By enabling this property, position will be calculated manually only on errors.
    • isEnableRawTextModes

      public boolean isEnableRawTextModes()
      See Also:
    • setEnableRawTextModes

      public LagartoParserConfig setEnableRawTextModes(boolean enableRawTextModes)
      Enables RAW (CDATA) and RCDATA text mode while parsing.
    • getTextBufferSize

      public int getTextBufferSize()
      See Also:
    • setTextBufferSize

      public void setTextBufferSize(int textBufferSize)
      Specifies initial text buffer size, used when emitting strings.
    • isDecodeHtmlEntities

      public boolean isDecodeHtmlEntities()
      See Also:
    • setDecodeHtmlEntities

      public LagartoParserConfig setDecodeHtmlEntities(boolean decodeHtmlEntities)
      Decodes HTML entities. By default, entities are decoded.