Package jodd.lagarto
Class LagartoParserConfig
- java.lang.Object
-
- jodd.lagarto.LagartoParserConfig
-
public class LagartoParserConfig extends java.lang.ObjectConfiguration forLagartoParser.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancalculatePositionprotected booleancaseSensitiveprotected booleanenableConditionalCommentsprotected booleanenableRawTextModesprotected booleanparseXmlTagsprotected inttextBufferSize
-
Constructor Summary
Constructors Constructor Description LagartoParserConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetTextBufferSize()booleanisCalculatePosition()booleanisCaseSensitive()Returnstrueif case-sensitive flag is enabled.booleanisEnableConditionalComments()booleanisEnableRawTextModes()booleanisParseXmlTags()Returnstrueif parsing of XML tags is enabled.LagartoParserConfigsetCalculatePosition(boolean calculatePosition)Resolves current position on parsing errors and for DOM elements.LagartoParserConfigsetCaseSensitive(boolean caseSensitive)Sets the case-sensitive flag for various matching.LagartoParserConfigsetEnableConditionalComments(boolean enableConditionalComments)Enables detection of IE conditional comments.LagartoParserConfigsetEnableRawTextModes(boolean enableRawTextModes)Enables RAW (CDATA) and RCDATA text mode while parsing.LagartoParserConfigsetParseXmlTags(boolean parseXmlTags)Enables parsing of XML tags.voidsetTextBufferSize(int textBufferSize)Specifies initial text buffer size, used when emitting strings.
-
-
-
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
-
-
Method Detail
-
isEnableConditionalComments
public boolean isEnableConditionalComments()
- See Also:
setEnableConditionalComments(boolean)
-
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()
Returnstrueif parsing of XML tags is enabled.
-
setParseXmlTags
public LagartoParserConfig setParseXmlTags(boolean parseXmlTags)
Enables parsing of XML tags.
-
isCaseSensitive
public boolean isCaseSensitive()
Returnstrueif 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(boolean)
-
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(boolean)
-
setEnableRawTextModes
public LagartoParserConfig setEnableRawTextModes(boolean enableRawTextModes)
Enables RAW (CDATA) and RCDATA text mode while parsing.
-
getTextBufferSize
public int getTextBufferSize()
- See Also:
setTextBufferSize(int)
-
setTextBufferSize
public void setTextBufferSize(int textBufferSize)
Specifies initial text buffer size, used when emitting strings.
-
-