Title: A1262290480JmziV
1????? ?????? ????? ?????????
2Static Modeling - Packages
- models the organization of the model itself.
- A model comprises a set of packages that hold
model elements, such as classes, state machines,
and use cases. - Packages may contain other packages.
- Every model element is owned by one package or
one other element.
3Meta Model
- Imagine trying to find a book in a library
without the help of a card catalog or
computerized search interface. Could you do it?
Perhaps, but it would be difficult at best. The
information contained in such a system is
essentially metadata about the books that are
housed at that library or at other libraries. It
provides you with vital information to help you
find a particular book and aids you in making a
decision as to whether that book might fit your
needs. - What Is Metadata?Metadata is a component of data
which describes the data. It is "data about
data." Metadata describes the content, quality,
condition, and other characteristics of data.
Metadata describes the who, what, when, where,
why, and how about a data set. Without proper
documentation a data set is incomplete.
4Meta Model
- A metamodel tends to be described as a model
which describes other models. - The toy known as Lego is the most famous
example. - Meta is the Greek word, which describes that
which is hidden, behind all things.
5(No Transcript)
6Meta Model Java Language
- import java.io.
- public class MyClass extends YourClass
- private int property
- MyClass()
-
- //construction code
-
- public static void main (String args)
-
- //piece of code
-
- public String toString()
-
- //piece of code
-
Save as .class
Save as .mdl
Save as .xml
Save as .mdb
7Meta Model Java Language
- ????? Class
- public abstract class MyClass
8Meta Model Java Language
- Nested Classes
- public abstract class MyClass
- public class InnerClass
-
-
9Meta Model Java Language
- Class Features
- public abstract class MyClass
- MyClass() //constructor feature1
- methodX() //methods feature2
- int x //fields feature3
10Meta Model Java Language
Class feature may be a regular class in case of
nested classes ormay be any of other feature
shown in the previous slide
11Meta Model Java Language
Two kinds of class features fields (attributes)
and behavioral (methods)
12Meta Model Java Language
Two kinds of behavioral features regular method
and constructorWhats next ? JavaClass is
composed of ClassFeatures
13Meta Model Java Language
What about parameters ?
14Meta Model Java Language
Parameters are of two types
15Meta Model Java Language
How is javaClass connected to its descriptor ?
16Meta Model Java Language
Yet missing JavaElement different that
classFeatures packages Mapping elements to
resources files, folders etc.