net.sf.farrago.cwm.instance
Interface CwmDataValueClass
- All Superinterfaces:
- RefBaseObject, RefClass, RefFeatured
- All Known Implementing Classes:
- CwmDataValueClass$Hib
public interface CwmDataValueClass
- extends RefClass
DataValue class proxy interface.
A data value is an instance with no identity. In the metamodel, DataValue
is a child of Instance that cannot change its state, i.e. all operations
that are applicable to it are pure functions or queries that do not cause
any side effects. DataValues are typically used
as attribute values.
Since it is not possible to differentiate between two data values that
appear to be the same, it becomes more of a philosophical issue whether
there are several data values representing the same value or just one for
each value. In addition, a data value cannot change its data type and it
does not have contained instances.
Note: This type should not be subclassed,
implemented or directly instantiated by clients. It is generated from a
MOF metamodel and implemented by Enki or MDR.
createCwmDataValue
CwmDataValue createCwmDataValue()
- The default factory operation used to create an instance object.
- Returns:
- The created instance object.
createCwmDataValue
CwmDataValue createCwmDataValue(String name,
VisibilityKind visibility,
String value)
- Creates an instance object having attributes initialized by the passed
values.
- Parameters:
name
- An identifier for the ModelElement within its containing
Namespace.visibility
- Specifies extent of the visibility of the
ModelElement within its owning Namespace.value
- A string representation of the value.
- Returns:
- The created instance object.