Class ChainedProperties

java.lang.Object
com.lowagie.text.html.simpleparser.ChainedProperties

public class ChainedProperties extends Object
  • Field Details

    • fontSizes

      public static final int[] fontSizes
    • chain

      public ArrayList<Object[]> chain
      Will be replaced with types alternative
  • Constructor Details

    • ChainedProperties

      public ChainedProperties()
      Creates a new instance of ChainedProperties
  • Method Details

    • getProperty

      public String getProperty(String key)
    • findProperty

      public Optional<String> findProperty(String key)
      Try find property by its name
      Parameters:
      key - property name
      Returns:
      Optional containing the value or Optional.empty() if there is no value or it equals null
    • getOrDefault

      public String getOrDefault(String key, String defaultValue)
      Get property by its name or return default value when property is not present or is null
      Parameters:
      key - property name
      defaultValue - default property value
      Returns:
      property or default value if it's null
    • hasProperty

      public boolean hasProperty(String key)
    • addToChain

      public void addToChain(String key, Map<String,String> prop)
    • removeChain

      public void removeChain(String key)