31.01.2014 Views

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.1. Meta Meta Models<br />

Element<br />

Attribute<br />

An element is a logical component either encapsulated by a corr<strong>es</strong>ponding start-tag<br />

and end-tag or an empty-element-tag. Line 1 to 11 or 3 to 10 are elements in the<br />

example but also line 2.<br />

An attribute is also a markup construct that consists of a name-value pair in<br />

a start-tag or an empty-element-tag. For example, language="C++" in line 2 or<br />

name="SomeMethod" and visibility="public" in line 3 are attribut<strong>es</strong>.<br />

The simple example in Figure 3.10 demonstrat<strong>es</strong> how XML could be used to model / d<strong>es</strong>cribe<br />

software class<strong>es</strong> or other kinds of models. As already mentioned, XML can be used as meta<br />

model and XSD as its corr<strong>es</strong>ponding meta meta model. XSD can be simplified and interpreted<br />

as a grammar definition for XML while XSD us<strong>es</strong> the same syntax as XML. Also, MOF and<br />

UML (Subsection 3.1.1) share this advantage.<br />

Figure 3.11 shows an example of an XML Schema Definition, which defin<strong>es</strong> a software class<br />

d<strong>es</strong>cription formalism corr<strong>es</strong>ponding to the preceding XML example in Figure 3.10. Generally,<br />

1 <br />

2 <br />

3 <br />

4 <br />

5 <br />

6 <br />

7 <br />

8 <br />

9 <br />

10 <br />

11 <br />

12 <br />

13 <br />

14 <br />

15 <br />

16 <br />

17 <br />

18 <br />

19 <br />

20 <br />

21 <br />

22 <br />

23 <br />

24 <br />

25 <br />

26 <br />

27 <br />

28 <br />

29 <br />

30 <br />

Figure 3.11.: XSD class definition example<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!