Package org.jsoup.parser
Class ParseSettings
- java.lang.Object
-
- org.jsoup.parser.ParseSettings
-
public class ParseSettings extends java.lang.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.private boolean
preserveAttributeCase
static ParseSettings
preserveCase
Preserve both tag and attribute case.private boolean
preserveTagCase
-
Constructor Summary
Constructors Constructor Description ParseSettings(boolean tag, boolean attribute)
Define parse settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
normalizeAttribute(java.lang.String name)
Normalizes an attribute according to the case preservation setting.(package private) Attributes
normalizeAttributes(Attributes attributes)
java.lang.String
normalizeTag(java.lang.String name)
Normalizes a tag name according to the case preservation setting.
-
-
-
Field Detail
-
htmlDefault
public static final ParseSettings htmlDefault
HTML default settings: both tag and attribute names are lower-cased during parsing.
-
preserveCase
public static final ParseSettings preserveCase
Preserve both tag and attribute case.
-
preserveTagCase
private final boolean preserveTagCase
-
preserveAttributeCase
private final boolean preserveAttributeCase
-
-
Method Detail
-
normalizeTag
public java.lang.String normalizeTag(java.lang.String name)
Normalizes a tag name according to the case preservation setting.
-
normalizeAttribute
public java.lang.String normalizeAttribute(java.lang.String name)
Normalizes an attribute according to the case preservation setting.
-
normalizeAttributes
Attributes normalizeAttributes(Attributes attributes)
-
-