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
-
PropertiesOwner()
-
-
getBoolean(String)
- Gets a boolean property with the specified name.
-
getBoolean(String, String)
- Gets a boolean property with the specified name providing a default
if the property is not found.
-
getDouble(String)
- Gets a double property with the specified name.
-
getDouble(String, String)
- Gets a double property with the specified name providing a default
if the property is not found.
-
getFloat(String)
- Gets a float property with the specified name.
-
getFloat(String, String)
- Gets a float property with the specified name providing a default
if the property is not found.
-
getInteger(String)
- Gets an integer property with the specified name.
-
getInteger(String, String)
- Gets an integer property with the specified name providing a default
if the property is not found.
-
getString(String)
- Gets a String property with the specified name.
-
getString(String, String)
- Gets a string property with the specified name providing a default
if the property is not found.
-
set(String, String)
- Sets a property with the specified name to the specified value.
-
setPropertiesManager(PropertiesManager)
- Sets the PropertiesManager.
PropertiesOwner
public PropertiesOwner()
setPropertiesManager
public void setPropertiesManager(PropertiesManager pm)
- Sets the PropertiesManager.
- Parameters:
- pm - the PropertiesManager.
getBoolean
public boolean getBoolean(String prop)
- Gets a boolean property with the specified name.
- Parameters:
- prop - the name of the property.
getInteger
public int getInteger(String prop)
- Gets an integer property with the specified name.
- Parameters:
- prop - the name of the property.
getFloat
public float getFloat(String prop)
- Gets a float property with the specified name.
- Parameters:
- prop - the name of the property.
getDouble
public double getDouble(String prop)
- Gets a double property with the specified name.
- Parameters:
- prop - the name of the property.
getString
public String getString(String prop)
- Gets a String property with the specified name.
- Parameters:
- prop - the name of the property.
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.
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.
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.
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.
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.
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