Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Stereotype (UML)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Other uses|Stereotype}}{{Refimprove|date=January 2010}} A '''stereotype''' is one of three types of [[extensibility|extensibility mechanisms]] in the [[Unified Modeling Language]] (UML), the other two being tags and constraints.<ref name=":0">{{Cite book |last=Booch |first=Grady |title=The unified modeling language user guide: covers UML 2.0 |last2=Rumbaugh |first2=James |last3=Jacobson |first3=Ivar |date=2005 |publisher=Addison-Wesley |isbn=978-0-321-26797-9 |edition=2 |series=The Addison-Wesley object technologies series |location=Upper Saddle River, NJ Munich |author-link=Grady Booch}}</ref>{{Rp|page=73}} They allow designers to extend the vocabulary of UML in order to create new model elements, derived from existing ones, but that have specific properties that are suitable for a particular domain or otherwise specialized usage. The nomenclature is derived from the original meaning of [[Stereotype (printing)|stereotype]], used in [[printing]]. For example, when modeling a network, one might need to have symbols for representing routers and hubs. By using stereotyped nodes, these can be made to appear as primitive building blocks. Graphically, a stereotype is rendered as a name enclosed by [[guillemets]] (« » or, if guillemets proper are unavailable, << >>) and placed above the name of another element.{{r|:0|pp=73}} In addition, or alternatively, it may be indicated by a specific icon. The icon image may even replace the entire UML symbol. For instance, in a class diagram stereotypes can be used to # classify method behavior, e.g. with «constructor» and «getter» and # refine the [[Classifier (UML)|classifier]] itself, e.g. with «interface».<ref> [[Object Management Group]], ''[https://www.omg.org/spec/UML/2.5.1/PDF OMG® Unified Modeling Language® (OMG UML®)]'', v2.5.1, p. 170, December 2017.</ref> One alternative to stereotypes, suggested by [[Peter Coad]] in his book ''Java Modeling in Color with UML: Enterprise Components and Process'' is the use of colored [[UML colors|archetypes]]. The archetypes indicated by different-colored UML boxes can be used in combination with stereotypes. This added definition of meaning indicates the role that the UML object plays within the larger software system. ==Stereotype attributes== {{Technical|section|date = June 2015}} From version 2.0 the previously independent tagged value is considered to be a ''stereotype attribute''. The name ''tagged value'' is still kept. Each stereotype has zero or more ''tag definitions'', and all stereotyped UML elements have the corresponding number of tagged values. ==UML-defined stereotypes== ===Become=== In UML, '''become''' is a [[Keyword (computer programming)|keyword]] for a specific UML stereotype, and applies to a [[Dependency (UML)|dependency]] (modeled as a dashed arrow). '''Become''' shows that the source modeling element (the arrow's tail) is transformed into the target modeling element (the arrow's head), while keeping some sort of identity, even though it may have changed values, [[State (computer science)|state]], or even class. While UML 2.1 uses the «become» stereotype within the specification, it does not define it. ==Examples== For example, three are used in the [[entity–control–boundary]] pattern (ECB or BCE pattern) and four in the [[robustness diagram]] (Boundary, Control, Entity and Actor).[[File:ControlClass.png|thumb|left|Control Class|175x175px]][[File:BoundaryClass.png|thumb|left|Boundary Class|219x219px]] [[File:EntityClass.png|thumb|left|Entity Class|213x213px]] [[File:Actor.png|thumb|center|Actor|377x377px]] [[File:AccessClass.png|thumb|center|Access Class]] ==See also== * [[Profile (UML)]] *[[Entity–control–boundary]] ==References== {{reflist}} ==External links== * [http://www.uml-diagrams.org/profile-diagrams.html#stereotype UML Stereotype] {{UML}} {{DEFAULTSORT:Stereotype (Uml)}} [[Category:Unified Modeling Language]] {{uml-stub}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Ambox
(
edit
)
Template:Cite book
(
edit
)
Template:Other uses
(
edit
)
Template:R
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:Rp
(
edit
)
Template:Technical
(
edit
)
Template:UML
(
edit
)
Template:Uml-stub
(
edit
)