com.dtolabs.utils
Class PropertiesUtil.PrefixAdder

java.lang.Object
  extended by 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.


Constructor Summary
PropertiesUtil.PrefixAdder(java.util.Properties props, java.lang.String prefix)
           
 
Method Summary
 void addProperties(java.util.Properties properties)
          Add all the input Properties.
 void addProperty(java.lang.String name, java.lang.String value)
          Add a property.
 PropertiesUtil.Adder withPrefix(java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtil.PrefixAdder

public PropertiesUtil.PrefixAdder(java.util.Properties props,
                                  java.lang.String prefix)
Method Detail

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)