ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.util
Class PropertiesMap

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.schwiebert.abl4j.util.PropertiesMap
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public final class PropertiesMap
extends Properties

See Also:
Serialized Form

Field Summary
private  ABLInitializer initializer
           
private static long serialVersionUID
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
PropertiesMap(ABLInitializer initializer)
           
 
Method Summary
 boolean getBoolean(String property)
           
 boolean getBoolean(String property, boolean defaultValue)
           
 char getCharacter(String property, char defaultValue)
           
 Class getClass(String propertyName)
           
 double getDouble(String property, double defaultValue)
           
 ABLInitializer getInitializer()
           
 int getInteger(String property)
           
 int getInteger(String property, int defaultValue)
           
 long getLong(String property, long defaultValue)
           
 Object getNewClassInstance(String propertyName)
           
 String getString(String property, String defaultValue)
           
 void logProperties()
           
 void put(String key, boolean value)
           
 void put(String key, int value)
           
 void setProperty(String key, boolean value)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

initializer

private ABLInitializer initializer
Constructor Detail

PropertiesMap

public PropertiesMap(ABLInitializer initializer)
Method Detail

getClass

public Class getClass(String propertyName)
               throws ClassNotFoundException
Throws:
ClassNotFoundException

getNewClassInstance

public Object getNewClassInstance(String propertyName)
                           throws Exception
Throws:
Exception

getBoolean

public boolean getBoolean(String property)

put

public void put(String key,
                boolean value)

put

public void put(String key,
                int value)

logProperties

public void logProperties()

getInteger

public int getInteger(String property)

setProperty

public void setProperty(String key,
                        boolean value)

getInitializer

public ABLInitializer getInitializer()

getDouble

public double getDouble(String property,
                        double defaultValue)

getInteger

public int getInteger(String property,
                      int defaultValue)

getBoolean

public boolean getBoolean(String property,
                          boolean defaultValue)

getCharacter

public char getCharacter(String property,
                         char defaultValue)

getLong

public long getLong(String property,
                    long defaultValue)

getString

public String getString(String property,
                        String defaultValue)

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert