All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.util.PropertiesOwner

java.lang.Object
   |
   +----tea.util.PropertiesOwner

public class PropertiesOwner
extends Object

This is a class that holds properties and refers to a main PropertiesManager object.

Version:
1.0 beta - 31 May 1997
Author:
Leonardo Boselli
See Also:
PropertiesManager

Constructor Index

 o PropertiesOwner()

Method Index

 o getBoolean(String)
Gets a boolean property with the specified name.
 o getBoolean(String, String)
Gets a boolean property with the specified name providing a default if the property is not found.
 o getDouble(String)
Gets a double property with the specified name.
 o getDouble(String, String)
Gets a double property with the specified name providing a default if the property is not found.
 o getFloat(String)
Gets a float property with the specified name.
 o getFloat(String, String)
Gets a float property with the specified name providing a default if the property is not found.
 o getInteger(String)
Gets an integer property with the specified name.
 o getInteger(String, String)
Gets an integer property with the specified name providing a default if the property is not found.
 o getString(String)
Gets a String property with the specified name.
 o getString(String, String)
Gets a string property with the specified name providing a default if the property is not found.
 o set(String, String)
Sets a property with the specified name to the specified value.
 o setPropertiesManager(PropertiesManager)
Sets the PropertiesManager.

Constructors

 o PropertiesOwner
 public PropertiesOwner()

Methods

 o setPropertiesManager
 public void setPropertiesManager(PropertiesManager pm)
Sets the PropertiesManager.

Parameters:
pm - the PropertiesManager.
 o getBoolean
 public boolean getBoolean(String prop)
Gets a boolean property with the specified name.

Parameters:
prop - the name of the property.
 o getInteger
 public int getInteger(String prop)
Gets an integer property with the specified name.

Parameters:
prop - the name of the property.
 o getFloat
 public float getFloat(String prop)
Gets a float property with the specified name.

Parameters:
prop - the name of the property.
 o getDouble
 public double getDouble(String prop)
Gets a double property with the specified name.

Parameters:
prop - the name of the property.
 o getString
 public String getString(String prop)
Gets a String property with the specified name.

Parameters:
prop - the name of the property.
 o getBoolean
 public boolean getBoolean(String prop,
                           String def)
Gets a boolean property with the specified name providing a default if the property is not found.

Parameters:
prop - the name of the property.
def - the default value.
 o getInteger
 public int getInteger(String prop,
                       String def)
Gets an integer property with the specified name providing a default if the property is not found.

Parameters:
prop - the name of the property.
def - the default value.
 o getFloat
 public float getFloat(String prop,
                       String def)
Gets a float property with the specified name providing a default if the property is not found.

Parameters:
prop - the name of the property.
def - the default value.
 o getDouble
 public double getDouble(String prop,
                         String def)
Gets a double property with the specified name providing a default if the property is not found.

Parameters:
prop - the name of the property.
def - the default value.
 o getString
 public String getString(String prop,
                         String def)
Gets a string property with the specified name providing a default if the property is not found.

Parameters:
prop - the name of the property.
def - the default value.
 o set
 public void set(String prop,
                 String def)
Sets a property with the specified name to the specified value.

Parameters:
prop - the name of the property.
def - the value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index