Groovy EMF Builder

Introduction

The Groovy EMF Builder can be used to create EMF models using the Groovy builder syntax.

Example

def builder = new EmfBuilder(EcorePackage)
def book = builder.EClass( 'Book' ) {
  eStructuralFeatures {
    title = EAttribute ( 'title', eType: EcorePackage.Literals.ESTRING )
    pages = EAttribute ( name: 'pages', eType: EcorePackage.Literals.EINT )
  }
}

License

The Groovy EMF Builder is licensed under the Apache License 2.0.

Maven Repository

To use the Groovy EMF Builder in your Maven-based project add the following Maven Repository to your POM:

<repository>
  <id>emfbuilder.sf.net</id>
  <name>emfbuilder Release Repository</name>
  <url>http://emfbuilder.sf.net/m2/release</url>
  <releases>
    <enabled>true</enabled>
  </releases>
  <snapshots>
    <enabled>false</enabled>
  </snapshots>
</repository>

... and add this depencency:

<dependency>
  <groupId>net.feltes</groupId>
  <artifactId>emfbuilder</artifactId>
  <version>0.9.0</version>
</dependency>

Downloads, Source Code and Help

Visit the Project Page at SourceForge for downloads, source code, and help.