net.sf.farrago.cwm.core
Interface CwmStereotype

All Superinterfaces:
CwmElement, CwmModelElement, RefBaseObject, RefFeatured, RefObject
All Known Implementing Classes:
CwmStereotype$Hib

public interface CwmStereotype
extends CwmModelElement

Stereotype object instance interface. The stereotype concept provides a way of branding (classifying) model elements so that they behave as if they were instances of new virtual metamodel constructs. These model elements have the same structure (attributes, associations, operations) as similar non-stereotyped model elements of the same kind. The stereotype may specify additional constraints and required tagged values that apply to model elements. In addition, a stereotype may be used to indicate a difference in meaning or usage between two model elements with identical structure. In the metamodel the Stereotype metaclass is a subclass of ModelElement. Tagged Values and Constraints attached to a Stereotype apply to all ModelElements branded by that Stereotype. A stereotype keeps track of the base class to which it may be applied. The base class is a class in the metamodel (not a user-level modeling element) such as Class, Association, etc. If a model element is branded by an attached stereotype, then the CWM base class of the model element must be the base class specified by the stereotype or one of the subclasses of that base class.

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.


Method Summary
 String getBaseClass()
          Returns the value of attribute baseClass.
 Collection<CwmModelElement> getExtendedElement()
          Returns the value of reference extendedElement.
 Collection<CwmTaggedValue> getRequiredTag()
          Returns the value of reference requiredTag.
 Collection<CwmConstraint> getStereotypeConstraint()
          Returns the value of reference stereotypeConstraint.
 void setBaseClass(String newValue)
          Sets the value of baseClass attribute.
 
Methods inherited from interface net.sf.farrago.cwm.core.CwmModelElement
getClientDependency, getConstraint, getImporter, getName, getNamespace, getVisibility, setName, setNamespace, setVisibility
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getBaseClass

String getBaseClass()
Returns the value of attribute baseClass. Specifies the name of a modeling element to which the stereotype applies, such as Class, Association, Constraint, etc. This is the name of a metaclass, that is, a class from the metamodel itself rather than a user model class.

Returns:
Value of attribute baseClass.

setBaseClass

void setBaseClass(String newValue)
Sets the value of baseClass attribute. See getBaseClass() for description on the attribute.

Parameters:
newValue - New value to be set.

getExtendedElement

Collection<CwmModelElement> getExtendedElement()
Returns the value of reference extendedElement.

Returns:
Value of reference extendedElement. Element type: CwmModelElement

getRequiredTag

Collection<CwmTaggedValue> getRequiredTag()
Returns the value of reference requiredTag.

Returns:
Value of reference requiredTag. Element type: CwmTaggedValue

getStereotypeConstraint

Collection<CwmConstraint> getStereotypeConstraint()
Returns the value of reference stereotypeConstraint.

Returns:
Value of reference stereotypeConstraint. Element type: CwmConstraint