com.pow2.resources
Class Prefs

java.lang.Object
  extended bycom.pow2.resources.PropertyContainerImpl
      extended bycom.pow2.resources.Prefs
All Implemented Interfaces:
PropertyContainer, Serializable

public class Prefs
extends PropertyContainerImpl

Prefs class

Author:
Luca Fossato
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.pow2.resources.PropertyContainerImpl
cat, properties
 
Method Summary
 void configure()
          Configure the Prefs class using the properties file defined by propertiesFile class member attribute.
 void configure(String propertiesFile)
          Configure the Prefs class using the input properties file.
 String getpropertiesFile()
          Get the name of the properties file.
static Prefs instance()
          Get the instance of Prefs class.
 void setpropertiesFile(String v)
          Set the name of the properties file.
 String toString()
          Get a String with the list of all the Prefs properties.
 
Methods inherited from class com.pow2.resources.PropertyContainerImpl
addProperty, getObject, getProperty, getPropertyKeys, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

instance

public static Prefs instance()
Get the instance of Prefs class.

Returns:
the instance of Prefs class.

getpropertiesFile

public String getpropertiesFile()
Get the name of the properties file.

Returns:
the name of the properties file.

setpropertiesFile

public void setpropertiesFile(String v)
Set the name of the properties file.

Parameters:
v - the name of the properties file.

configure

public void configure()
               throws Exception
Configure the Prefs class using the properties file defined by propertiesFile class member attribute.

Throws:
Exception - if any error occurs

configure

public void configure(String propertiesFile)
               throws Exception
Configure the Prefs class using the input properties file.

Parameters:
propertiesFile - the full path name of the properties file
Throws:
Exception - if any error occurs

toString

public String toString()
Get a String with the list of all the Prefs properties.

Returns:
a string with the list of all the Prefs properties.


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.