Package org.jsoup.parser
Class ParseSettings
java.lang.Object
org.jsoup.parser.ParseSettings
Controls parser case settings, to optionally preserve tag and/or attribute name case.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseSettings
HTML default settings: both tag and attribute names are lower-cased during parsing.static final ParseSettings
Preserve both tag and attribute case. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnormalizeAttribute
(String name) Normalizes an attribute according to the case preservation setting.normalizeTag
(String name) Normalizes a tag name according to the case preservation setting.boolean
Returns true if preserving attribute case.boolean
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.
-