JavaBeans%20Profile - PowerPoint PPT Presentation

About This Presentation
Title:

JavaBeans%20Profile

Description:

Read-only attributes. Attribute OCL Constraints. context java::Attribute inv: ... although the RSM and RSA implementation supports only the UML 2.0 meta-model. ... – PowerPoint PPT presentation

Number of Views:13
Avg rating:3.0/5.0
Slides: 24
Provided by: cinU
Category:

less

Transcript and Presenter's Notes

Title: JavaBeans%20Profile


1
JavaBeans Profile
  • Domingos Neto
  • drmneto_at_gmail.com
  • Marcos Aurélio maurelio1234_at_gmail.com

2
Outline
  • Introduction
  • Java profile
  • JavaBeans profile
  • References

3
Introduction
ltltapplygtgt
4
Introduction
ltltimportgtgt
ltltimportgtgt
5
Java UML2 Profile
  • Extending UML metaclasses with Java Concepts
  • We represented only the concepts that are
    important to JavaBeans Profile
  • Java Concepts
  • Classes
  • Attributes
  • Methods
  • Parameters
  • Constructors
  • Interfaces
  • Exceptions

6
(No Transcript)
7
  • Java does not allow multiple class inheritance,
    classes cant be active neither own ports.
  • Every class has an constructor
  • Every class operation is a constructor or a method

context JavaClass inv superClass-gtsize() lt 1
and ownedPort-gtisEmpty() and isActive false
8
(No Transcript)
9
Attributes
  • Represents Java attributes. Java has no support
    for
  • associations between classes,
  • attribute overriding
  • attribute redefinition
  • set attributes
  • Read-only attributes

10
Attribute OCL Constraints
11
Java Profile usage Example
12
JavaBeans Profile
  • Specializes Java profile for modeling JavaBean
    components.
  • Modeled JavaBeans concepts
  • Bean
  • Property
  • Event
  • Event Listener
  • Event Triggering

13
JavaBeans Profile
14
JavaBeans Profile
15
JavaBeans Profile
16
JavaBeans OCL
17
JavaBeans - OCL
18
JavaBeans - OCL
19
JavaBeans - OCL
20
JavaBeans - OCL
21
JavaBeans - OCL
22
JavaBeans API
  • ltltExceptiongtgtjavabeansVetoException
  • ltltInterfacegtgtjavaioSerializable

23
JavaBeans Profile usage example
24
Note Theoretically, UML profiles could extend
various meta-models, although the RSM and RSA
implementation supports only the UML 2.0
meta-model.
http//www-128.ibm.com/developerworks/rational/lib
rary/05/0906_dusko/
Write a Comment
User Comments (0)
About PowerShow.com