Package org.jsoup.parser
Class ParseSettings
java.lang.Object
org.jsoup.parser.ParseSettings
public class ParseSettings extends Object
Controls parser case settings, to optionally preserve tag and/or attribute name case.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseSettingsHTML default settings: both tag and attribute names are lower-cased during parsing.static final ParseSettingsPreserve both tag and attribute case. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStringnormalizeAttribute(String name) Normalizes an attribute according to the case preservation setting.StringnormalizeTag(String name) Normalizes a tag name according to the case preservation setting.booleanReturns true if preserving attribute case.booleanReturns true if preserving tag name case.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Constructor Details
-
Method Details
-
preserveTagCase
public boolean preserveTagCase()Returns true if preserving tag name case. -
preserveAttributeCase
public boolean preserveAttributeCase()Returns true if preserving attribute case. -
normalizeTag
public String normalizeTag(String name) Normalizes a tag name according to the case preservation setting. -
normalizeAttribute
public String normalizeAttribute(String name) Normalizes an attribute according to the case preservation setting.
-