Class ChainedProperties
- java.lang.Object
-
- com.lowagie.text.html.simpleparser.ChainedProperties
-
public class ChainedProperties extends Object
-
-
Constructor Summary
Constructors Constructor Description ChainedProperties()Creates a new instance of ChainedProperties
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddToChain(String key, HashMap prop)Deprecated.voidaddToChain(String key, Map<String,String> prop)Optional<String>findProperty(String key)Try find property by its nameStringgetOrDefault(String key, String defaultValue)Get property by its name or return default value when property is not present or isnullStringgetProperty(String key)booleanhasProperty(String key)voidremoveChain(String key)
-
-
-
Field Detail
-
fontSizes
public static final int[] fontSizes
-
chain
@Deprecated public ArrayList chain
Deprecated.Will be replaced with types alternative
-
-
Method Detail
-
findProperty
public Optional<String> findProperty(String key)
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
public String getOrDefault(String key, String defaultValue)
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
public boolean hasProperty(String key)
-
addToChain
@Deprecated public void addToChain(String key, HashMap prop)
Deprecated.- Parameters:
key- the keyprop- the properties
-
removeChain
public void removeChain(String key)
-
-