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

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.bankframe.fe.statemachine.ext.validation.PropertiesReader
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class PropertiesReader
extends java.util.Properties

The PropertiesReader class.

See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTIES_EXT
           
static java.lang.String SEPERATOR
           
 
Constructor Summary
PropertiesReader()
          The PropertiesReader constructor.
PropertiesReader(java.util.Properties defaults)
          The PropertiesReader constructor.
 
Method Summary
 java.util.Enumeration getKeys()
          This method returns the keys of the loaded properties file.
 java.lang.String getString(java.lang.String key)
          This method returns the value for a given key.
 java.net.URL loadPropertiesURL(java.lang.String name)
          This method loads the properties for a given file name.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
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 java.lang.String PROPERTIES_EXT
See Also:
Constant Field Values

SEPERATOR

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

PropertiesReader

public PropertiesReader()
The PropertiesReader constructor.


PropertiesReader

public PropertiesReader(java.util.Properties defaults)
The PropertiesReader constructor.

Parameters:
defaults - java.util.Properties
Method Detail

getKeys

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

Returns:
Enumeration of key names.

getString

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

Parameters:
key - String
Returns:
String

loadPropertiesURL

public java.net.URL loadPropertiesURL(java.lang.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.