|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DSExtendable
Copyright: Copyright (c) 2003
Company: First Genetic Trust Inc.
The concept behind interfaceDSExtendable is borrowed directly
from the definition of the Extendable interface in MAGE-OM.
It provides a generic mechanism for attaching arbitrary infromation
(in the form of name-value pairs) to an implementing class. Since the
semanitcs of such information is use-specific, scant use of this
mechanism is advisable.
| Method Summary | |
|---|---|
void |
addNameValuePair(java.lang.String name,
java.lang.Object value)
Adds a new name-value mapping. |
void |
allowMultipleValues(java.lang.String name)
Conjugate method for forceUniqueValue. |
void |
clearName(java.lang.String name)
Removes all values associated with the given name. |
void |
forceUniqueValue(java.lang.String name)
Forces that the name be associated with at most one value. |
java.lang.Object[] |
getValuesForName(java.lang.String name)
Returns all values mapped to the designated name. |
boolean |
isUniqueValue(java.lang.String name)
Check if forceUniqueValue() is in effect for the designated
name. |
| Method Detail |
|---|
void addNameValuePair(java.lang.String name,
java.lang.Object value)
name - value - java.lang.Object[] getValuesForName(java.lang.String name)
name -
name.void forceUniqueValue(java.lang.String name)
name be associated with at most one value.
Attempting to add a name-value pair for a 'name' that already has an
associate value, results in old name-value association be replaced by the
new one.
Calling this method for an existing 'name' results in all the associated
name-value pairs to be cleared.
name - The 'name' upon which uniqueness of value will be enforced.void allowMultipleValues(java.lang.String name)
forceUniqueValue. Enables a 'name' to
accept mulptiple name-value asscociations.
name - The 'name' for which multiplicity of value is enabled.boolean isUniqueValue(java.lang.String name)
forceUniqueValue() is in effect for the designated
name.
name -
void clearName(java.lang.String name)
name.
name -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||