Class ChainedProperties
java.lang.Object
com.itextpdf.text.html.simpleparser.ChainedProperties
Deprecated.
since 5.5.2
Stores the hierarchy of tags along with the attributes of each tag.
- Since:
- 5.0.6 renamed from ChainedProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classDeprecated.Class that stores the info about one tag in the chain. -
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.A list of chained properties representing the tag hierarchy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToChain(String tag, Map<String, String> props) Deprecated.Adds a tag and its corresponding properties to the chain.protected voidadjustFontSize(Map<String, String> attrs) Deprecated.If the properties contain a font size, the size may need to be adjusted based on font sizes higher in the hierarchy.getProperty(String key) Deprecated.Walks through the hierarchy (bottom-up) looking for a property key.booleanhasProperty(String key) Deprecated.Walks through the hierarchy (bottom-up) looking for a property key.voidremoveChain(String tag) Deprecated.Walks through the hierarchy (bottom-up) and removes the first occurrence of a tag that is encountered.
-
Field Details
-
chain
Deprecated.A list of chained properties representing the tag hierarchy.
-
-
Constructor Details
-
ChainedProperties
public ChainedProperties()Deprecated.Creates a new instance of ChainedProperties
-
-
Method Details
-
getProperty
-
hasProperty
Deprecated.Walks through the hierarchy (bottom-up) looking for a property key. Returns true as soon as a match is found or false if the key can't be found.- Parameters:
key- the key of the property- Returns:
- true if the key is found
-
addToChain
-
removeChain
Deprecated.Walks through the hierarchy (bottom-up) and removes the first occurrence of a tag that is encountered.- Parameters:
tag- the tag that needs to be removed
-
adjustFontSize
-