blob: 1b1297f844c4ff2d72649e9728935855b7903786 [file] [log] [blame]
[comment]
Copyright (c) 2008, 2012 Obeo
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 1.0
Any license can be applied to the files generated with this template
and Acceleo.
author <a href="mailto:laurent.goubet@obeo.fr">Laurent Goubet</a>
[/comment]
[module commonClass('http://www.eclipse.org/emf/2002/Ecore')/]
[import names/]
[template public packageToPythonCommonFile(packaje : EPackage)]
[file (packaje.moduleCommon().trim(), false)]
class [packaje.baseClass()/]:
"""
[packaje.baseClass()/] is the base class of all elements in the [packaje.moduleName()/] module.
"""
def __init__(self):
pass
self.__internal_resource__ = None
def __eResource__(self):
pass
class [packaje.relationBaseClass()/](list):
"""
Base class for relations
"""
pass
class [packaje.resourceClass()/]:
"""
The [packaje.resourceClass()/] is responsible for model serialization.
"""
def __init__(self,uri):
# type here your specific code
self.__content__ = ['[]'/]
self.__uri__ = uri
def load(self,options=dict()):
pass
def save(self,options=dict()):
pass
class [packaje.resourceFactory()/]:
"""
The [packaje.resourceFactory()/] is responsible for creating resource.
"""
def __init__(self):
# type here your specific code
pass
def create(self,uri,options=dict()):
pass
[/file]
[/template]