net.sf.farrago.cwm.core
Interface CwmAttributeClass
- All Superinterfaces:
- RefBaseObject, RefClass, RefFeatured
- All Known Implementing Classes:
- CwmAttributeClass$Hib
public interface CwmAttributeClass
- extends RefClass
Attribute class proxy interface.
An Attribute describes a named slot within a classifier that may hold a
value.
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.
createCwmAttribute
CwmAttribute createCwmAttribute()
- The default factory operation used to create an instance object.
- Returns:
- The created instance object.
createCwmAttribute
CwmAttribute createCwmAttribute(String name,
VisibilityKind visibility,
ScopeKind ownerScope,
ChangeableKind changeability,
CwmMultiplicity multiplicity,
OrderingKind ordering,
ScopeKind targetScope,
CwmExpression initialValue)
- 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.ownerScope
- Specifies whether the Feature appears in every
instance of the Classifier or whether it appears only once for the
entire Classifier.changeability
- Specifies whether the value may be modified after
the object is created.multiplicity
- The possible number of data values for the feature
that may be held by an instance. The cardinality of the set of values
is an implicit part of the feature. In the common case in which the
multiplicity is 1..1, then the feature is a scalar (i.e., it holds
exactly one value).ordering
- Specifies whether the set of instances is ordered. The
ordering must be determined and maintained by Operations that add
values to the feature. This property is only relevant if the
multiplicity is greater than one.targetScope
- Specifies whether the targets are ordinary
Instances or are Classifiers.initialValue
- An Expression specifying the value of the
attribute upon initialization. It is meant to be evaluated at the time
the object is initialized. (Note that an explicit constructor may
supersede an initial value.)
- Returns:
- The created instance object.