Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.util
Interface PropertyAccess

All Known Subinterfaces:
StructuredPropertyAccess
All Known Implementing Classes:
DefaultPropertyAccess, DefaultStructuredPropertyAccess, IdeLayout, IdeProperties, Layout, SimpleLayout

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

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

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

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

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

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