Extension SDK 10.1.2

oracle.ide.util
Interface PropertyAccess

All Known Subinterfaces:
Layout, StructuredPropertyAccess
All Known Implementing Classes:
BaseLayout, DefaultPropertyAccess, DefaultStructuredPropertyAccess, PropertiesNode

public interface PropertyAccess

The PropertyAccess interface provides the API for getting and setting properties.


Method Summary
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Retrieves the value associated with a property.
 java.lang.Object removeProperty(java.lang.String key)
          Removes the property.
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
          Sets the value for a property.
 

Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String 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 java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Sets the value for a property.

Parameters:
key - the property key to set
value - the string value to set
Returns:
the previous value

removeProperty

public java.lang.Object removeProperty(java.lang.String key)
Removes the property.

Parameters:
key - the property key to remove
Returns:
the previous value

Extension SDK

 

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