Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: cdbf7a3067edf30bf919aa2f66fc2dcd1972be42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Model Library

This model description is not a real EMF artifact. It was generated by the
org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's
code generator can be extended.
This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.

Package library <http://www.example.eclipse.org/Library>

  Class Book
    Attribute title : String<<1..1>>
    Attribute pages : Int<<1..1>>
    Attribute category : BookCategory<<1..1>>
    Reference author : Writer<<1..1>>

  Class Library
    Attribute name : String<<1..1>>
    Reference writers : Writer<<0..*>>
    Reference books : Book<<0..*>>

  Class Writer
    Attribute name : String<<1..1>>
    Reference books : Book<<0..*>>

  Enum BookCategory
    Literal Mystery = 0
    Literal ScienceFiction = 1
    Literal Biography = 2

  DataType BookCategoryObject <org.eclipse.emf.common.util.Enumerator>

Back to the top