head 1.1; branch 1.1.1; access ; symbols DEVEL:1.1.1.1 HEAD:1.1.1; locks ; strict; comment @# @; 1.1 date 2001.03.16.18.13.09; author jallali; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.03.16.18.13.09; author jallali; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @

Overview | Package | Class | Tree | Deprecated | Index | Help
| EJCL Xtreme for PalmOS
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.util
Class Properties

    java.lang.Object
      |
      +--java.util.Hashtable
            |
            +--java.util.Properties

public class Properties
extends Hashtable

Properties is a Hashtable where the keys and values must be Strings. Each Properties can have a default Properties which specifies the default values which are used if the key is not in this Properties.

See Also:
  `Hashtable`, `System.getProperties()`, Serialized Form

Field Summary
`protected Properties` | `defaults` The default values for this Properties.

Constructor Summary
`Properties()` Constructs a new Properties object.
`Properties(Properties properties)` Constructs a new Properties object using the specified default properties.

Method Summary
`String` | `getProperty(String name)` Searches for the property with the specified name.
`String` | `getProperty(String name, String defaultValue)` Searches for the property with the specified name.

Methods inherited from class java.util.Hashtable
`clear, clone, contains, containsKey, elements, get, keys, put, rehash, remove, size`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### defaults

    protected Properties defaults

  The default values for this Properties.

Constructor Detail

### Properties

    public Properties()

  Constructs a new Properties object.

### Properties

    public Properties(Properties properties)

  Constructs a new Properties object using the specified default properties.
  Parameters:
    `properties` - the default properties

Method Detail

### getProperty

    public String getProperty(String name)

  Searches for the property with the specified name. If the property is not found, look in the default properties. If the property is not found in the default properties, answer null.
  Parameters:
    `name` - the name of the property to find
  Returns:
    the named property value

### getProperty

    public String getProperty(String name,
                              String defaultValue)

  Searches for the property with the specified name. If the property is not found, look in the default properties. If the property is not found in the default properties, answer the specified default.
  Parameters:
    `name` - the name of the property to find
    `defaultValue` - the default value
  Returns:
    the named property value

Overview | Package | Class | Tree | Deprecated | Index | Help
| EJCL Xtreme for PalmOS
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

@ 1.1.1.1 log @import initial @ text @@