Class TemplatePropertiesWrapper

java.lang.Object
com.epam.common.utils.TemplatePropertiesWrapper
All Implemented Interfaces:
Cloneable

public class TemplatePropertiesWrapper extends Object implements Cloneable
Wraps Properties for handle templates like key=${value}.
  • Field Details

  • Constructor Details

    • TemplatePropertiesWrapper

      public TemplatePropertiesWrapper()
    • TemplatePropertiesWrapper

      public TemplatePropertiesWrapper(Properties properties)
    • TemplatePropertiesWrapper

      public TemplatePropertiesWrapper(Map<String,String> properties)
  • Method Details

    • put

      public void put(String key, String value)
    • getProperty

      public String getProperty(String key)
      Gets value by key. If value is template methods replace it by template value otherwise puts ' '.
      Returns:
      String
    • getProperty

      public String getProperty(String key, String defaultValue)
      Gets value by key. If value is template methods replace it by template value. If template value doesn't exist it will be replace by defaultValue .
      Returns:
      String
    • clear

      public void clear()
    • getAllProperties

      public Map<String,String> getAllProperties()
    • getKeys

      public Set<String> getKeys()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • exists

      public boolean exists(String propertyName)