Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<org:OrgModel xmi:version="2.0"
   xmlns:org="httpplatform://plugin/no.hal.org/model/org.ecore"
   xsi:schemaLocation="http://plugin/no.hal.org/model/org.ecore file:/Users/hal/java/workspaces/tdt4250/no.hal.org/model/org.ecore">
   <orgUnits>
      <workers
         name="Hallvard &quot;hal&quot; Trætteberg"
         role="//@roles.0"/>
   </orgUnits>
   <roles
      name="manager"/>
</org:OrgModel>
Code Block
identifies the root object asis being of the type org:OrgModel
relates the org prefix to our "org" package's identifying URI
   a contained instance that is orgUnits-related to the outer object, implicitly an OrgUnit
      a contained instance that is workers-related to the outer object, implicitly a Person
        name attribute and value
        role reference and link to object referenced by URI fragment
   
   a contained instance that is roles-related to the outer object, implicitly a Role
      name attribute and value
 

Model instances are graphs in general, but it is easier to think of them as mostly hierarchical, with links across. Hence, a serialisation mechanism will typically need to support the following features: 

...