com.bankframe.fe.statemachine.ext.validation
Class PropertiesReader

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by com.bankframe.fe.statemachine.ext.validation.PropertiesReader
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class PropertiesReader
extends Properties

The PropertiesReader class.

See Also:
Serialized Form

Field Summary
static String PROPERTIES_EXT
           
static String SEPERATOR
           
 
Constructor Summary
PropertiesReader()
          The PropertiesReader constructor.
PropertiesReader(Properties defaults)
          The PropertiesReader constructor.
 
Method Summary
 Enumeration getKeys()
          This method returns the keys of the loaded properties file.
 String getString(String key)
          This method returns the value for a given key.
 URL loadPropertiesURL(String name)
          This method loads the properties for a given file name.
 
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, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTIES_EXT

public static final String PROPERTIES_EXT
See Also:
Constant Field Values

SEPERATOR

public static final String SEPERATOR
See Also:
Constant Field Values
Constructor Detail

PropertiesReader

public PropertiesReader()
The PropertiesReader constructor.


PropertiesReader

public PropertiesReader(Properties defaults)
The PropertiesReader constructor.

Parameters:
defaults - java.util.Properties
Method Detail

getKeys

public Enumeration getKeys()
This method returns the keys of the loaded properties file.

Returns:
Enumeration of key names.

getString

public String getString(String key)
This method returns the value for a given key.

Parameters:
key - String
Returns:
String

loadPropertiesURL

public URL loadPropertiesURL(String name)
                      throws ValidationException
This method loads the properties for a given file name.

Parameters:
name - String the name should not include the ".properties" extension part.
Returns:
URL the file name as a URL
Throws:
ValidationException


Copyright © 2005, 2007, Oracle. All rights reserved.