com.sage.accpac.sm
Interface Property


@ThreadSafe
public interface Property

The Property interface provides access to a persisted property shared over the whole system.
The easiest way to create a property object is by calling IPropertyBag.getProperty

See Also:
the PropertyBag class

Method Summary
 void clear()
          Clears the property.
 java.lang.Object getValue()
          gets the value of the property.
 void setValue(java.lang.Object o)
          sets the value of the property.
 

Method Detail

clear

void clear()
Clears the property.
Attempting to get a property that has been cleared returns a null reference.
Clearing a property that is already clear is not an error.


getValue

java.lang.Object getValue()
gets the value of the property. If there is no such property (either because it has been cleared or it has never been set in the first place) then a null reference will be returned.

Returns:
the value of the property

setValue

void setValue(java.lang.Object o)
sets the value of the property.

Parameters:
o - an object defining the value of the property. This must be a serializable object.


Copyright © 2011 Sage Software, Inc. All rights reserved.