Class ChainedProperties
java.lang.Object
com.lowagie.text.html.simpleparser.ChainedProperties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToChain(String key, HashMap prop) Deprecated.voidaddToChain(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 isnullgetProperty(String key) booleanhasProperty(String key) voidremoveChain(String key)
-
Field Details
-
fontSizes
public static final int[] fontSizes -
chain
Deprecated.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:
Optionalcontaining 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
Deprecated.- Parameters:
key- the keyprop- the properties
-
addToChain
-
removeChain
-
addToChain(String, HashMap)