rails.util
Class ConfigItem

java.lang.Object
  extended by rails.util.ConfigItem

public final class ConfigItem
extends java.lang.Object

Defines an item used for the configuration of rails T represents the value type


Nested Class Summary
static class ConfigItem.ConfigType
          Defines possible types (Java classes used as types in ConfigItem below
 
Field Summary
 java.util.List<java.lang.String> allowedValues
           
 java.lang.String formatMask
           
protected static org.apache.log4j.Logger log
           
 java.lang.String name
           
 ConfigItem.ConfigType type
           
 
Constructor Summary
ConfigItem(Tag tag)
           
 
Method Summary
(package private)  void callInitMethod()
           
 java.lang.String getConfigValue()
           
 java.lang.String getCurrentValue()
           
 java.lang.String getNewValue()
           
 boolean hasNewValue()
           
 void setNewValue(java.lang.String newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log

name

public final java.lang.String name

type

public final ConfigItem.ConfigType type

allowedValues

public final java.util.List<java.lang.String> allowedValues

formatMask

public final java.lang.String formatMask
Constructor Detail

ConfigItem

ConfigItem(Tag tag)
     throws ConfigurationException
Throws:
ConfigurationException
Method Detail

hasNewValue

public boolean hasNewValue()

getNewValue

public java.lang.String getNewValue()

setNewValue

public void setNewValue(java.lang.String newValue)

getCurrentValue

public java.lang.String getCurrentValue()

getConfigValue

public java.lang.String getConfigValue()

callInitMethod

void callInitMethod()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object