| 1 | ################################################################################
|
|---|
| 2 | # IZMSMetamodelProvider.py
|
|---|
| 3 | #
|
|---|
| 4 | # This program is free software; you can redistribute it and/or
|
|---|
| 5 | # modify it under the terms of the GNU General Public License
|
|---|
| 6 | # as published by the Free Software Foundation; either version 2
|
|---|
| 7 | # of the License, or (at your option) any later version.
|
|---|
| 8 | #
|
|---|
| 9 | # This program is distributed in the hope that it will be useful,
|
|---|
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 12 | # GNU General Public License for more details.
|
|---|
| 13 | #
|
|---|
| 14 | # You should have received a copy of the GNU General Public License
|
|---|
| 15 | # along with this program; if not, write to the Free Software
|
|---|
| 16 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|---|
| 17 | ################################################################################
|
|---|
| 18 |
|
|---|
| 19 | # Imports.
|
|---|
| 20 | from zope.interface import Interface
|
|---|
| 21 |
|
|---|
| 22 | class IZMSMetamodelProvider(Interface):
|
|---|
| 23 |
|
|---|
| 24 | def getMetaobjId(self, name):
|
|---|
| 25 | """
|
|---|
| 26 | Returns id of meta-object specified by name.
|
|---|
| 27 | @rtype: C{string}
|
|---|
| 28 | """
|
|---|
| 29 |
|
|---|
| 30 | def getMetaobjIds(self, sort=1, excl_ids=[]):
|
|---|
| 31 | """
|
|---|
| 32 | Returns list of all meta-ids in model.
|
|---|
| 33 | @rtype: C{list}
|
|---|
| 34 | """
|
|---|
| 35 |
|
|---|
| 36 | def getMetaobj(self, id):
|
|---|
| 37 | """
|
|---|
| 38 | Returns meta-object specified by meta-id.
|
|---|
| 39 | @rtype: C{dict}
|
|---|
| 40 | """
|
|---|
| 41 |
|
|---|
| 42 | def getMetaobjAttrIds(self, meta_id, types=[]):
|
|---|
| 43 | """
|
|---|
| 44 | Returns list of attribute-ids for meta-object specified by meta-id.
|
|---|
| 45 | @rtype: C{list}
|
|---|
| 46 | """
|
|---|
| 47 |
|
|---|
| 48 | def getMetaobjAttrs(self, meta_id, types=[]):
|
|---|
| 49 | """
|
|---|
| 50 | Get all attributes for meta-object specified by meta-id.
|
|---|
| 51 | @rtype: C{list}
|
|---|
| 52 | """
|
|---|
| 53 |
|
|---|
| 54 | def getMetaobjAttr(self, meta_id, key):
|
|---|
| 55 | """
|
|---|
| 56 | Get attribute for meta-object specified by attribute-id.
|
|---|
| 57 | @rtype: C{dict}
|
|---|
| 58 | """
|
|---|
| 59 |
|
|---|
| 60 | def getMetaobjAttrIdentifierId(self, meta_id):
|
|---|
| 61 | """
|
|---|
| 62 | Get attribute-id of identifier for datatable specified by meta-id.
|
|---|
| 63 | @rtype: C{dict}
|
|---|
| 64 | """
|
|---|
| 65 |
|
|---|
| 66 | def notifyMetaobjAttrAboutValue(self, meta_id, key, value):
|
|---|
| 67 | """
|
|---|
| 68 | Notify attribute for meta-object specified by attribute-id about value.
|
|---|
| 69 | @rtype: C{dict}
|
|---|
| 70 | """
|
|---|