Defined Attribute

A DefinedAttribute is an association between an AttributeIdentifier and an AttributeValue. DefinedAttribute(s) are often implemented as instance variables, but need not be.

Sometimes, for example, especially after refactoring has caused some classes to become siblings after they were initially created, a DefinedAttribute provides an easy way for two families to use different names for the same instance variable.

DefinedAttribute(s) can also help solve data currency problems, especially early in the life of some code. They provide a way for multiple classes to provide access (sometimes under multiple names) to a single instance variable, without creating multiple copies (and the associated update and currency nightmares).

-- TomStambaugh


Please give examples of how these can "help solve data currency problems". -RonJeffries


EditText of this page (last edited November 29, 2004) or FindPage with title or text search