Package com.epam.common.utils
Class TemplatePropertiesWrapper
java.lang.Object
com.epam.common.utils.TemplatePropertiesWrapper
- All Implemented Interfaces:
Cloneable
Wraps
Properties for handle templates like key=${value}.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTemplatePropertiesWrapper(Map<String, String> properties) TemplatePropertiesWrapper(Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleanbooleangetKeys()getProperty(String key) Gets value by key.getProperty(String key, String defaultValue) Gets value by key.inthashCode()void
-
Field Details
-
TEMPL_START
- See Also:
-
TEMPL_END
- See Also:
-
TEMPL_NEGATION
- See Also:
-
TEMPL_NEGATION_LEN
public static final int TEMPL_NEGATION_LEN
-
-
Constructor Details
-
TemplatePropertiesWrapper
public TemplatePropertiesWrapper() -
TemplatePropertiesWrapper
-
TemplatePropertiesWrapper
-
-
Method Details
-
put
-
getProperty
Gets value by key. If value is template methods replace it by template value otherwise puts ' '.- Returns:
- String
-
getProperty
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
-
getKeys
-
equals
-
hashCode
public int hashCode() -
clone
-
exists
-