Class ChainedProperties
java.lang.Object
com.lowagie.text.html.simpleparser.ChainedProperties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToChain
(String key, Map<String, String> prop) findProperty
(String key) Try find property by its namegetOrDefault
(String key, String defaultValue) Get property by its name or return default value when property is not present or isnull
getProperty
(String key) boolean
hasProperty
(String key) void
removeChain
(String key)
-
Field Details
-
fontSizes
public static final int[] fontSizes -
chain
Will be replaced with types alternative
-
-
Constructor Details
-
ChainedProperties
public ChainedProperties()Creates a new instance of ChainedProperties
-
-
Method Details
-
getProperty
-
findProperty
Try find property by its name- Parameters:
key
- property name- Returns:
Optional
containing the value orOptional.empty()
if there is no value or it equalsnull
-
getOrDefault
Get property by its name or return default value when property is not present or isnull
- Parameters:
key
- property namedefaultValue
- default property value- Returns:
- property or default value if it's null
-
hasProperty
-
addToChain
-
removeChain
-