Module com.github.librepdf.openpdf
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 Modifier and Type Method Description 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)
-
-
-
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)
-
removeChain
public void removeChain(String key)
-
-