org.siprop.v2.util.impl
Class PropertiesDepotPrefix

java.lang.Object
  extended by org.siprop.v2.util.impl.PropertiesDepotPrefix
All Implemented Interfaces:
PropertiesDepot

public class PropertiesDepotPrefix
extends java.lang.Object
implements PropertiesDepot

Add prefix for PropertiesDepot of getter,setter.

Author:
noritsuna

Constructor Summary
PropertiesDepotPrefix(PropertiesDepot prop, java.lang.String prefix)
          Constructor.
 
Method Summary
 java.lang.String getProperty(java.lang.String property)
          get property.
 void loadProperties(java.lang.String propertyPath)
          load property.
 void processNewProperties(java.lang.String propertyPath)
          rebuild property.
 void setProperty(java.lang.String propertyName, java.lang.String propertyValue)
          set property.
 void setup(PropertiesDepot prop)
          setup propertyDepot class.
 void storeProperties()
          delete property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesDepotPrefix

public PropertiesDepotPrefix(PropertiesDepot prop,
                             java.lang.String prefix)
Constructor.

Parameters:
prop - base PropertiesDepot
prefix - prefix
Method Detail

loadProperties

public void loadProperties(java.lang.String propertyPath)
Description copied from interface: PropertiesDepot
load property.

Specified by:
loadProperties in interface PropertiesDepot

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.String propertyValue)
Description copied from interface: PropertiesDepot
set property.

Specified by:
setProperty in interface PropertiesDepot

getProperty

public java.lang.String getProperty(java.lang.String property)
Description copied from interface: PropertiesDepot
get property.

Specified by:
getProperty in interface PropertiesDepot
Returns:
matching property

storeProperties

public void storeProperties()
Description copied from interface: PropertiesDepot
delete property.

Specified by:
storeProperties in interface PropertiesDepot

processNewProperties

public void processNewProperties(java.lang.String propertyPath)
Description copied from interface: PropertiesDepot
rebuild property.

Specified by:
processNewProperties in interface PropertiesDepot

setup

public void setup(PropertiesDepot prop)
Description copied from interface: PropertiesDepot
setup propertyDepot class.

Specified by:
setup in interface PropertiesDepot