TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.core.internal
Class DPropertyStore

java.lang.Object
  extended by org.eclipse.tptp.platform.report.core.internal.DPropertyStore

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class DPropertyStore
extends java.lang.Object

DPropertyStore purpose is to store values associated with a key (a string). A variety of method is proprosed to facilitate the usage with java primitive types.


Constructor Summary
DPropertyStore()
          Deprecated. Constructs an empty property store
 
Method Summary
 java.util.Map elements()
          Deprecated. Returns all properties in the store in a java.util.Map object.
 java.lang.Object get(java.lang.String _key)
          Deprecated. Returns the property value stored with the key _key, null if key isn't known.
 boolean get(java.lang.String _key, boolean _default_value)
          Deprecated. Specialized get method for a boolean property.
 byte get(java.lang.String _key, byte _default_value)
          Deprecated. Specialized get method for a byte property.
 double get(java.lang.String _key, double _default_value)
          Deprecated. Specialized get method for a double property.
 float get(java.lang.String _key, float _default_value)
          Deprecated. Specialized get method for a float property.
 int get(java.lang.String _key, int _default_value)
          Deprecated. Specialized get method for an int property.
 long get(java.lang.String _key, long _default_value)
          Deprecated. Specialized get method for a long property.
 java.lang.Object get(java.lang.String _key, java.lang.Object _default_value)
          Deprecated. Returns value assciated with key if stored value is non null, otherwise return default value.
 short get(java.lang.String _key, short _default_value)
          Deprecated. Specialized get method for a short property.
 java.lang.String get(java.lang.String _key, java.lang.String _default_value)
          Deprecated. Specialized get method for a string property.
 boolean hasKey(java.lang.String _key)
          Deprecated. Returns true if it already exists in the property store a property with the key _key
 boolean hasValue(java.lang.String _key)
          Deprecated. Returns true if the property with the key _key has a value.
 void remove(java.lang.String _key)
          Deprecated. Removes a property to the store with the key _key.
 void store(java.lang.String _key, boolean _value)
          Deprecated. Specialized store method for a boolean property
 void store(java.lang.String _key, byte _value)
          Deprecated. Specialized store method for a byte property
 void store(java.lang.String _key, double _value)
          Deprecated. Specialized store method for a double property
 void store(java.lang.String _key, float _value)
          Deprecated. Specialized store method for a float property
 void store(java.lang.String _key, int _value)
          Deprecated. Specialized store method for a int property
 void store(java.lang.String _key, long _value)
          Deprecated. Specialized store method for a long property
 void store(java.lang.String _key, java.lang.Object _value)
          Deprecated. Stores a property, replace any previous same key with new value.
 void store(java.lang.String _key, short _value)
          Deprecated. Specialized store method for a short property
 boolean valueIs(java.lang.String _key, java.lang.Class _value_class)
          Deprecated. Returns true if the property _key is associated with a non null value and this value's class is equals to _value_class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DPropertyStore

public DPropertyStore()
Deprecated. 
Constructs an empty property store

Method Detail

hasKey

public boolean hasKey(java.lang.String _key)
Deprecated. 
Returns true if it already exists in the property store a property with the key _key


hasValue

public boolean hasValue(java.lang.String _key)
Deprecated. 
Returns true if the property with the key _key has a value. Value not equal to null.


store

public void store(java.lang.String _key,
                  java.lang.Object _value)
Deprecated. 
Stores a property, replace any previous same key with new value. A variety of store method exists for each java primitives types.


remove

public void remove(java.lang.String _key)
Deprecated. 
Removes a property to the store with the key _key.


valueIs

public boolean valueIs(java.lang.String _key,
                       java.lang.Class _value_class)
Deprecated. 
Returns true if the property _key is associated with a non null value and this value's class is equals to _value_class


get

public java.lang.Object get(java.lang.String _key)
Deprecated. 
Returns the property value stored with the key _key, null if key isn't known.

See Also:
hasValue(java.lang.String)

get

public java.lang.Object get(java.lang.String _key,
                            java.lang.Object _default_value)
Deprecated. 
Returns value assciated with key if stored value is non null, otherwise return default value.


store

public final void store(java.lang.String _key,
                        boolean _value)
Deprecated. 
Specialized store method for a boolean property


store

public final void store(java.lang.String _key,
                        byte _value)
Deprecated. 
Specialized store method for a byte property


store

public final void store(java.lang.String _key,
                        short _value)
Deprecated. 
Specialized store method for a short property


store

public final void store(java.lang.String _key,
                        int _value)
Deprecated. 
Specialized store method for a int property


store

public final void store(java.lang.String _key,
                        long _value)
Deprecated. 
Specialized store method for a long property


store

public final void store(java.lang.String _key,
                        float _value)
Deprecated. 
Specialized store method for a float property


store

public final void store(java.lang.String _key,
                        double _value)
Deprecated. 
Specialized store method for a double property


get

public final boolean get(java.lang.String _key,
                         boolean _default_value)
Deprecated. 
Specialized get method for a boolean property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with a Boolean value.

get

public final byte get(java.lang.String _key,
                      byte _default_value)
Deprecated. 
Specialized get method for a byte property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final short get(java.lang.String _key,
                       short _default_value)
Deprecated. 
Specialized get method for a short property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final int get(java.lang.String _key,
                     int _default_value)
Deprecated. 
Specialized get method for an int property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final long get(java.lang.String _key,
                      long _default_value)
Deprecated. 
Specialized get method for a long property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final float get(java.lang.String _key,
                       float _default_value)
Deprecated. 
Specialized get method for a float property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final double get(java.lang.String _key,
                        double _default_value)
Deprecated. 
Specialized get method for a double property.

Returns:
_default_value if key is unknown, null value is store or key is not associated with an instance of Number.

get

public final java.lang.String get(java.lang.String _key,
                                  java.lang.String _default_value)
Deprecated. 
Specialized get method for a string property.

Returns:
_default_value if key is unknown, null value or key is not associated with a String object value.

elements

public java.util.Map elements()
Deprecated. 
Returns all properties in the store in a java.util.Map object.


TPTP 4.5.0 Platform Project
Internal API Specification