Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.util
Class DoubleProperties  view DoubleProperties download DoubleProperties.java

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.apache.derby.iapi.util.DoubleProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public final class DoubleProperties
extends java.util.Properties

A properties object that links two independent properties together. The read property set is always searched first, with the write property set being second. But any put() calls are always made directly to the write object. Only the put(), keys() and getProperty() methods are supported by this class.


Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
private  java.util.Properties read
           
private  java.util.Properties write
           
 
Fields inherited from class java.util.Properties
defaults
 
Fields inherited from class java.util.Hashtable
 
Constructor Summary
DoubleProperties(java.util.Properties read, java.util.Properties write)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Gets the property with the specified key in this property list.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Gets the property with the specified key in this property list.
 java.util.Enumeration propertyNames()
          Returns an enumeration of all keys in this property list, including the keys in the default property list.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
          Puts the supplied value into the Map, mapped by the supplied key.
 
Methods inherited from class java.util.Properties
list, list, load, loadFromXML, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

read

private final java.util.Properties read

write

private final java.util.Properties write
Constructor Detail

DoubleProperties

public DoubleProperties(java.util.Properties read,
                        java.util.Properties write)
Method Detail

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Description copied from class: java.util.Hashtable
Puts the supplied value into the Map, mapped by the supplied key. Neither parameter may be null. The value may be retrieved by any object which equals() this key.


getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from class: java.util.Properties
Gets the property with the specified key in this property list. If the key is not found, the default property list is searched. If the property is not found in the default, null is returned.


getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Description copied from class: java.util.Properties
Gets the property with the specified key in this property list. If the key is not found, the default property list is searched. If the property is not found in the default, the specified defaultValue is returned.


propertyNames

public java.util.Enumeration propertyNames()
Description copied from class: java.util.Properties
Returns an enumeration of all keys in this property list, including the keys in the default property list.