com.dtolabs.utils
Class PropertiesUtil.PrefixAdder
java.lang.Object
com.dtolabs.utils.PropertiesUtil.PrefixAdder
- All Implemented Interfaces:
- PropertiesUtil.Adder
- Enclosing class:
- PropertiesUtil
public static class PropertiesUtil.PrefixAdder
- extends java.lang.Object
- implements PropertiesUtil.Adder
A Adder that adds new properties to the input Properties object using a given prefix to prepend to the
name of all new properties.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesUtil.PrefixAdder
public PropertiesUtil.PrefixAdder(java.util.Properties props,
java.lang.String prefix)
addProperty
public void addProperty(java.lang.String name,
java.lang.String value)
- Description copied from interface:
PropertiesUtil.Adder
- Add a property.
- Specified by:
addProperty
in interface PropertiesUtil.Adder
addProperties
public void addProperties(java.util.Properties properties)
- Description copied from interface:
PropertiesUtil.Adder
- Add all the input Properties.
- Specified by:
addProperties
in interface PropertiesUtil.Adder
withPrefix
public PropertiesUtil.Adder withPrefix(java.lang.String prefix)