Class ParseSettings
java.lang.Object
com.itextpdf.styledxmlparser.jsoup.parser.ParseSettings
Controls parser 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.private final booleanstatic final ParseSettingsPreserve both tag and attribute case.private final boolean -
Constructor Summary
ConstructorsConstructorDescriptionParseSettings(boolean tag, boolean attribute) Define parse settings.ParseSettings(ParseSettings copy) -
Method Summary
Modifier and TypeMethodDescriptionnormalizeAttribute(String name) Normalizes an attribute according to the case preservation setting.(package private) AttributesnormalizeAttributes(Attributes attributes) normalizeTag(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.
-
Field Details
-
htmlDefault
HTML default settings: both tag and attribute names are lower-cased during parsing. -
preserveCase
Preserve both tag and attribute case. -
preserveTagCase
private final boolean preserveTagCase -
preserveAttributeCase
private final boolean preserveAttributeCase
-
-
Constructor Details
-
ParseSettings
public ParseSettings(boolean tag, boolean attribute) Define parse settings.- Parameters:
tag- preserve tag case?attribute- preserve attribute name case?
-
ParseSettings
ParseSettings(ParseSettings copy)
-
-
Method Details
-
preserveTagCase
public boolean preserveTagCase()Returns true if preserving tag name case. -
preserveAttributeCase
public boolean preserveAttributeCase()Returns true if preserving attribute case. -
normalizeTag
-
normalizeAttribute
-
normalizeAttributes
-