Package org.jsoup.parser
Class ParseSettings
java.lang.Object
org.jsoup.parser.ParseSettings
public class ParseSettings extends Object
Controls parser settings, to optionally preserve tag and/or attribute name case.
-
Field Summary
Fields Modifier and Type Field Description static ParseSettings
htmlDefault
HTML default settings: both tag and attribute names are lower-cased during parsing.static ParseSettings
preserveCase
Preserve both tag and attribute case. -
Constructor Summary
Constructors Constructor Description ParseSettings(boolean tag, boolean attribute)
Define parse settings. -
Method Summary
Modifier and Type Method Description String
normalizeAttribute(String name)
Normalizes an attribute according to the case preservation setting.String
normalizeTag(String name)
Normalizes a tag name according to the case preservation setting.boolean
preserveAttributeCase()
Returns true if preserving attribute case.boolean
preserveTagCase()
Returns true if preserving tag name case.
-
Field Details
-
htmlDefault
HTML default settings: both tag and attribute names are lower-cased during parsing. -
preserveCase
Preserve both tag and attribute case.
-
-
Constructor Details
-
ParseSettings
public ParseSettings(boolean tag, boolean attribute)Define parse settings.- Parameters:
tag
- preserve tag case?attribute
- preserve attribute name case?
-
-
Method Details
-
preserveTagCase
public boolean preserveTagCase()Returns true if preserving tag name case. -
preserveAttributeCase
public boolean preserveAttributeCase()Returns true if preserving attribute case. -
normalizeTag
Normalizes a tag name according to the case preservation setting. -
normalizeAttribute
Normalizes an attribute according to the case preservation setting.
-