{"id":5556,"date":"2022-05-23T02:43:59","date_gmt":"2022-05-23T02:43:59","guid":{"rendered":"https:\/\/www.booksofall.com\/?post_type=product&#038;p=5556"},"modified":"2022-06-15T05:18:47","modified_gmt":"2022-06-15T05:18:47","slug":"implementation-of-uml-concepts-in-java","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/","title":{"rendered":"Implementation of UML concepts in Java"},"content":{"rendered":"<p><strong>UML \u2013 Class Diagram<\/strong><\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Class_diagram\">\u00a0Class diagram<\/a> depicts the static structure of the system. This structure comprises:<\/p>\n<ul>\n<li>The classes<\/li>\n<li>The associations between classes<\/li>\n<li>The dependencies between classes<\/li>\n<li>System interfaces<\/li>\n<\/ul>\n<h4><strong>Class<\/strong><\/h4>\n<p>The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Modeling_Language\">UML<\/a> symbol for a class is a box with three partitions. In the top partition we write the name of the class. In the middle partition the attributes of the class and the third partition the class methods. In the example of the figure, the name of the class is \u2018Student\u2019. The class has a \u2018name\u2019 attribute and an \u2018enroll\u2019 method.<\/p>\n<h4><strong>Association<\/strong><\/h4>\n<p>Associations are relations between instances of a class (A person works for a company. A company has a number of employees). Associations in UML are depicted as lines connecting the associated classes. In the example diagram, class Student is associated with the Course class.<\/p>\n<h4><strong>Role<\/strong><\/h4>\n<p>An association end can be named with a label. This label is the rolename and represents the role of the end\u2019s class in the association.<\/p>\n<h4><strong>Multiplicity<\/strong><\/h4>\n<p>An association end has also a multiplicity, which is an indication of how many instances can participate in this association at any time. Multiplicity can be exactly 1, 0..1 (optional association), * (zero or more), 1..* (one or more), or any specific number.<\/p>\n<h4><strong>Navigability<\/strong><\/h4>\n<p>Navigability represents the ability to traverse an association from one direction, but not the opposite direction. For example consider the UML class diagram of the figure. The arrow in the Professor-Course association means that having a professor instance we can query it for the its courses but not the opposite (course instances are unaware of the professors that teach them). Therefore the navigability is from the professor to the course. Student courses<\/p>\n<h4><strong>Generalization<\/strong><\/h4>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Generalization\">Generalization<\/a> is a technique that allows the definition of a general class from which more specific classes are derived. These more specific classes (subclasses) specialize certain aspects of the more general class (base class or superclass). In the figure we can see a generalization example in which a Part-Time Student is defined as a subclass of the more general Student base class.<\/p>\n<h4><strong>UML \u2013 Sequence Diagrams<\/strong><\/h4>\n<p>In UML sequence diagrms objects are represented as boxes placed horizontally from left to right. Objects exchange messages that are depicted as directed arrows. The direction of arrows shows the direction of the message (which object is the source of the message and which object is the destination of the message). Time passes from top to bottom: messages higher on the sequence diagram occur before messages lower on the diagram.<\/p>\n<h4><strong>Object<\/strong><\/h4>\n<p>An object is represented by a box in which we write the name of the object and the class of the object separated by a colon. If we haven\u2019t decided yet what is the class of an object we can omit the class name. If the name an object is not important we can omit it and simply write the class name preceded by the colon.<\/p>\n<h4><strong>Message exchange<\/strong><\/h4>\n<p>Message exchange is represented as a directed arrow from one object (the sender) to another object (the receiver). Message handling is provided by the receiver object implementation. The receive object will usually provide a method that will handle the message. In the sequence diagram example of the figure, class Customer will provide a public method \u2018getName()\u2019 that will be executed when the message arrives at the aCustomer object. If the message is conditional we write the condition of the message before it in brackets (e.g. [ok]getName()). If the message is repeated (as in loops) we write an asterisk before the message (as in * getName()).<\/p>\n<h4><strong>Message Return<\/strong><\/h4>\n<p>A message return is depicted as a dashed arrow from the receiver of the message back to the sender, and it means that the receiver finished processing the message. If there are any results, they can be written above the dashed line. It is not obligatory to explicitly draw returns from messages and we usually omit them.<\/p>\n<h4><strong>Self calls<\/strong><\/h4>\n<p>Self-calls are method calls in which the sender and the receiver objects are the same object.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 480px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/implementation-of-uml-concepts-in-java-yo1oriube?enforceShowPromotionBar=true\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":5559,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram."},"product_brand":[],"product_cat":[213],"product_tag":[201],"class_list":{"0":"post-5556","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-computer-uml","7":"product_tag-lecture-notes","9":"first","10":"instock","11":"shipping-taxable","12":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Implementation of UML concepts in Java - BooksOfAll French<\/title>\n<meta name=\"description\" content=\"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Implementation of UML concepts in Java - BooksOfAll French\" \/>\n<meta property=\"og:description\" content=\"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll French\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T05:18:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\" \/><meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"596\" \/>\n\t<meta property=\"og:image:height\" content=\"842\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/\",\"url\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/\",\"name\":\"Implementation of UML concepts in Java - BooksOfAll French\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\",\"datePublished\":\"2022-05-23T02:43:59+00:00\",\"dateModified\":\"2022-06-15T05:18:47+00:00\",\"description\":\"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg\",\"width\":\"596\",\"height\":\"842\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/fr\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Implementation of UML concepts in Java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#website\",\"url\":\"https:\/\/www.booksofall.com\/fr\/\",\"name\":\"BooksOfAll French\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/fr\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#organization\",\"name\":\"BooksOfAll French\",\"url\":\"https:\/\/www.booksofall.com\/fr\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll French\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Implementation of UML concepts in Java - BooksOfAll French","description":"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/","og_locale":"fr_FR","og_type":"article","og_title":"Implementation of UML concepts in Java - BooksOfAll French","og_description":"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.","og_url":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/","og_site_name":"BooksOfAll French","article_modified_time":"2022-06-15T05:18:47+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","type":"","width":"","height":""},{"width":596,"height":842,"url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/","url":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/","name":"Implementation of UML concepts in Java - BooksOfAll French","isPartOf":{"@id":"https:\/\/www.booksofall.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","datePublished":"2022-05-23T02:43:59+00:00","dateModified":"2022-06-15T05:18:47+00:00","description":"In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#primaryimage","url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","contentUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/img_62a157c132cbc.jpeg","width":"596","height":"842"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/fr\/implementation-of-uml-concepts-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/fr\/categories\/"},{"@type":"ListItem","position":3,"name":"Implementation of UML concepts in Java"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/fr\/#website","url":"https:\/\/www.booksofall.com\/fr\/","name":"BooksOfAll French","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/fr\/#organization","name":"BooksOfAll French","url":"https:\/\/www.booksofall.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/fr\/wp-content\/uploads\/sites\/6\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll French"},"image":{"@id":"https:\/\/www.booksofall.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product\/5556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/media\/5559"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/media?parent=5556"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_brand?post=5556"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_cat?post=5556"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/fr\/wp-json\/wp\/v2\/product_tag?post=5556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}