Interface IStereotype
The public interface for Stereotype
[DefaultImplementationType(typeof(Stereotype))]
[XmlDefaultImplementationType(typeof(Stereotype))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Stereotype")]
public interface IStereotype : IClass, IBehavioredClassifier, IEncapsulatedClassifier, IStructuredClassifier, IClassifier, ITemplateableElement, IType, IPackageableElement, IParameterableElement, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inherited Members
Properties
Icon
Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements. <p>From package UML::Packages.</p>
[Browsable(false)]
[XmlElementName("icon")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IImage> Icon { get; }
Property Value
Methods
AssociationEndOwnership(object, object)
Where a stereotype’s property is an association end for an association other than a kind of extension, and the other end is not a stereotype, the other end must be owned by the association itself. ownedAttribute ->select(association->notEmpty() and not association.oclIsKindOf(Extension) and not type.oclIsKindOf(Stereotype)) ->forAll(opposite.owner = association)
bool AssociationEndOwnership(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
Base_property_multiplicity_multiple_extension(object, object)
If a Stereotype extends more than one metaclass, the multiplicity of the corresponding base-properties shall be [0..1]. At any point in time, only one of these base-properties can contain a metaclass instance during runtime.
bool Base_property_multiplicity_multiple_extension(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
Base_property_multiplicity_single_extension(object, object)
If a Stereotype extends only one metaclass, the multiplicity of the corresponding base-property shall be 1..1.
bool Base_property_multiplicity_single_extension(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
Base_property_upper_bound(object, object)
The upper bound of base-properties is exactly 1.
bool Base_property_upper_bound(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
BinaryAssociationsOnly(object, object)
Stereotypes may only participate in binary associations. ownedAttribute.association->forAll(memberEnd->size()=2)
bool BinaryAssociationsOnly(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
ContainingProfile()
The query containingProfile returns the closest profile directly or indirectly containing this stereotype. result = (self.namespace.oclAsType(Package).containingProfile()) <p>From package UML::Packages.</p>
IProfile ContainingProfile()
Returns
CreateExtension(IClass, bool)
Creates a(n) (required) extension of the specified metaclass with this stereotype.
IExtension CreateExtension(IClass metaclass, bool isRequired)
Parameters
metaclass
IClassThe metaclass for the new extension.
isRequired
boolWhether the new extension should be required.
Returns
CreateIcon(string)
Creates an icon with the specified location for this stereotype.
IImage CreateIcon(string location)
Parameters
location
stringThe location for the new icon.
Returns
CreateIcon(string, string)
Creates an icon with the specified format and content for this stereotype.
IImage CreateIcon(string format, string content)
Parameters
Returns
Generalize(object, object)
A Stereotype may only generalize or specialize another Stereotype. allParents()->forAll(oclIsKindOf(Stereotype)) and Classifier.allInstances()->forAll(c | c.allParents()->exists(oclIsKindOf(Stereotype)) implies c.oclIsKindOf(Stereotype))
bool Generalize(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
GetAllExtendedMetaclasses()
Retrieves all the metaclasses extended by this stereotype, including the metaclasses extended by its superstereotypes.
ISetExpression<IClass> GetAllExtendedMetaclasses()
Returns
GetDefinition()
Retrieves the current definition (Ecore representation) of this stereotype.
IEClass GetDefinition()
Returns
GetExtendedMetaclasses()
Retrieves the metaclasses extended by this stereotype.
ISetExpression<IClass> GetExtendedMetaclasses()
Returns
GetKeyword()
Retrieves the localized keyword for this stereotype.
string GetKeyword()
Returns
GetKeyword(bool)
Retrieves the keyword for this stereotype, localized if indicated.
string GetKeyword(bool localize)
Parameters
localize
boolWhether to localize the keyword.
Returns
GetProfile()
A stereotype must be contained, directly or indirectly, in a profile. result = (self.containingProfile()) <p>From package UML::Packages.</p>
IProfile GetProfile()
Returns
Name_not_clash(object, object)
Stereotype names should not clash with keyword names for the extended model element.
bool Name_not_clash(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.