org.pfsw.odem
Interface IObjectProperties

All Known Subinterfaces:
IAnalyzableElement, IContainer, IDependency<S,T>, IExplorableElement, IExplorationContext, IExplorationModelObject, INamespace, IType
All Known Implementing Classes:
AAnalyzableElement, AModelObject, AnalyzableElementDependency, ClassContainer, ClassContainerDependency, ClassInformation, ClassInformationDependency, ClassPackage, ClassPackageDependency, GenericClassContainer, NotFoundClassContainer, ObjectProperties, SoftwareComponent, SoftwareComponentDependency, TypeDependency, Workset

public interface IObjectProperties

Each object that supports generic attributes must implement this interface.

Version:
1.0
Author:
M.Duchrow

Method Summary
 java.lang.Object getProperty(java.lang.String propertyName)
          Returns the property associated with the given name.
 java.lang.String[] getPropertyNames()
          Returns all currently known properties.
 void setProperty(java.lang.String propertyName, java.lang.Object object)
          Sets the value of the property with the specified name to the given object.
 

Method Detail

getProperty

java.lang.Object getProperty(java.lang.String propertyName)
Returns the property associated with the given name. A null value indicates that a property with the specified name does not exist.

Parameters:
propertyName - A valid name (must not be null or empty string)
Returns:
The object associated with the given name or null if property unknown

setProperty

void setProperty(java.lang.String propertyName,
                 java.lang.Object object)
Sets the value of the property with the specified name to the given object. This replaces ny object that might have been kept under the given name before.

If the given object is null, the property and any associated value will be removed.

Parameters:
propertyName - A valid name (must not be null or empty string)
object - The object to keep under the specified property name

getPropertyNames

java.lang.String[] getPropertyNames()
Returns all currently known properties. If no property is known an empty array will be returned (never null).

Returns:
All the names of available properties