public class ParseSettings
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
ParseSettings(boolean tag,
boolean attribute)
Define parse settings.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.String |
normalizeAttribute(java.lang.String name) |
(package private) Attributes |
normalizeAttributes(Attributes attributes) |
(package private) java.lang.String |
normalizeTag(java.lang.String name) |
public static final ParseSettings htmlDefault
public static final ParseSettings preserveCase
private final boolean preserveTagCase
private final boolean preserveAttributeCase
public ParseSettings(boolean tag, boolean attribute)
tag
- preserve tag case?attribute
- preserve attribute name case?java.lang.String normalizeTag(java.lang.String name)
java.lang.String normalizeAttribute(java.lang.String name)
Attributes normalizeAttributes(Attributes attributes)