Package jodd.lagarto

Class LagartoParserConfig


  • public class LagartoParserConfig
    extends java.lang.Object
    Configuration for LagartoParser.
    • Field Detail

      • parseXmlTags

        protected boolean parseXmlTags
      • enableConditionalComments

        protected boolean enableConditionalComments
      • caseSensitive

        protected boolean caseSensitive
      • calculatePosition

        protected boolean calculatePosition
      • enableRawTextModes

        protected boolean enableRawTextModes
      • textBufferSize

        protected int textBufferSize
    • Constructor Detail

      • LagartoParserConfig

        public LagartoParserConfig()
    • Method Detail

      • 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.
      • 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.
      • setEnableRawTextModes

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

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