public class LagartoParserConfig
extends java.lang.Object
LagartoParser.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
calculatePosition |
protected boolean |
caseSensitive |
protected boolean |
enableConditionalComments |
protected boolean |
enableRawTextModes |
protected boolean |
parseXmlTags |
protected int |
textBufferSize |
| Constructor and Description |
|---|
LagartoParserConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getTextBufferSize() |
boolean |
isCalculatePosition() |
boolean |
isCaseSensitive()
Returns
true if case-sensitive flag is enabled. |
boolean |
isEnableConditionalComments() |
boolean |
isEnableRawTextModes() |
boolean |
isParseXmlTags()
Returns
true if parsing of XML tags is enabled. |
LagartoParserConfig |
setCalculatePosition(boolean calculatePosition)
Resolves current position on parsing errors
and for DOM elements.
|
LagartoParserConfig |
setCaseSensitive(boolean caseSensitive)
Sets the case-sensitive flag for various matching.
|
LagartoParserConfig |
setEnableConditionalComments(boolean enableConditionalComments)
Enables detection of IE conditional comments.
|
LagartoParserConfig |
setEnableRawTextModes(boolean enableRawTextModes)
Enables RAW (CDATA) and RCDATA text mode while parsing.
|
LagartoParserConfig |
setParseXmlTags(boolean parseXmlTags)
Enables parsing of XML tags.
|
void |
setTextBufferSize(int textBufferSize)
Specifies initial text buffer size, used when emitting strings.
|
protected boolean parseXmlTags
protected boolean enableConditionalComments
protected boolean caseSensitive
protected boolean calculatePosition
protected boolean enableRawTextModes
protected int textBufferSize
public boolean isEnableConditionalComments()
setEnableConditionalComments(boolean)public LagartoParserConfig setEnableConditionalComments(boolean enableConditionalComments)
public boolean isParseXmlTags()
true if parsing of XML tags is enabled.public LagartoParserConfig setParseXmlTags(boolean parseXmlTags)
public boolean isCaseSensitive()
true if case-sensitive flag is enabled.public LagartoParserConfig setCaseSensitive(boolean caseSensitive)
public boolean isCalculatePosition()
setCalculatePosition(boolean)public LagartoParserConfig setCalculatePosition(boolean calculatePosition)
public boolean isEnableRawTextModes()
setEnableRawTextModes(boolean)public LagartoParserConfig setEnableRawTextModes(boolean enableRawTextModes)
public int getTextBufferSize()
setTextBufferSize(int)public void setTextBufferSize(int textBufferSize)