Copyright (c) 2009, 2010 Springsite BV (The Netherlands) and others
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Martin Taal - Initial API and implementation
$Id: ModelPackage.java,v 1.22 2011/08/29 05:16:08 mtaal Exp $
The ModelPackage contains direct and efficient statics and provides access to the runtime model (the
) through generated methods. The ModelPackage is responsible for reading the model from an ecore file located in the
same package. Each of the
instances in the model and each
will have a
generated constant and generated methods to have direct access to the model elements at runtime.
The ModelPackage also provides a single access point to the ModelFactory through the
method and through the generated MODELFACTORY constant.
EPackage of this ModelPackage
Returns the name of the ecore file holding the model represented by this class. Normally this file is present in
the same java package as this class. In this case the return is just the ecore file name. The file name is used to
read the ecore file from the classpath (see
- the name of the ecore file
- the nsuri of the epackage
- See also:
Return the package
specific for the instance of this ModelPackage. There is one global
instance of this specific instance of the ModelFactory per ModelPackage.
- the ModelFactory handling the creation of types for this ModelPackage
- the nsprefix of the epackage
- See also:
Returns the Class implementing a specific EClassifier.
- the implementation class