Extension SDK 10.1.2

oracle.ide.util
Interface DynamicPropertySet

All Superinterfaces:
Copyable
All Known Subinterfaces:
WorkEnvironment, WorkEnvironment.Setting
All Known Implementing Classes:
DynamicPropertySetImpl, PackageFolder, Project, Workspace

public interface DynamicPropertySet
extends Copyable

This class can be used by objects that need to manage a dynamic set of properties.


Method Summary
 java.util.Map getProperties()
          Retrieves a map holding the property-value pairs.
 java.lang.Object getProperty(java.lang.String key)
          Retrieves the value associated with a property.
 java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue)
          Retrieves the value associated with a property.
 void setProperties(java.util.Map properties)
          Sets the map holding the property-value pairs.
 void setProperty(java.lang.String key, java.lang.Object value)
          Sets the value for a property.
 
Methods inherited from interface oracle.ide.util.Copyable
copyTo
 

Method Detail

getProperty

public java.lang.Object getProperty(java.lang.String key)
Retrieves the value associated with a property.

Parameters:
key - the property key for which a value is desired. exists.
Returns:
the value of the requested property, or a null value if the property does not exist or is not set.

getProperty

public java.lang.Object getProperty(java.lang.String key,
                                    java.lang.Object defaultValue)
Retrieves the value associated with a property. If no value exists for the requested property, the specified default value is returned.

Parameters:
key - the property key for which a value is desired.
defaultValue - the value to return if no value currently exists.
Returns:
the value of the requested property, or the default value if the property does not exist.

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Sets the value for a property. Setting a value to null removes that property.

Parameters:
key - the property key to set
value - the value to set

getProperties

public java.util.Map getProperties()
Retrieves a map holding the property-value pairs.


setProperties

public void setProperties(java.util.Map properties)
Sets the map holding the property-value pairs.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.