source: mauRepo/MolesManager/trunk/src/ea_model/iso_19144_1_classification_systems/cl_classificationruleitem.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19144_1_classification_systems/cl_classificationruleitem.py@8091
Revision 8091, 6.8 KB checked in by mnagni, 8 years ago (diff)

The migration process now includes
1) deployment_data files
2) XML document hash
3) full Dojo support


Line 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21from ea_model.iso_19135_2005_procedures_for_registration.re_registeritem import  RE_RegisterItem
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:06
26
27@author: mnagni
28'''
29
30class CL_ClassificationRuleItem(RE_RegisterItem):
31    '''
32        Represents a data entity defined in a UML diagram and supposed to
33        be persisted in a relational database.
34 
35        This class has been genererated automatically using the Apache Velocity project.
36    '''
37    '''
38        Please note that any access to the inner attributes should be done using
39        the given get/set methods and NOT accessing them directly.
40    '''
41    def __init__(self):
42        self._re_registeritem = RE_RegisterItem()       
43
44        self.alternativeExpressions = []
45        self.additionInformation = []
46        self._itemClass_cl_classificationlegendclass = None
47        self._itemClass_cl_classificationruleclass = None
48        self._itemClass_cl_classificationruleclass = None
49        self._itemClass_cl_classificationlegendclass = None
50        self._register_cl_classificationregister = []
51        self._register_cl_classificationregister = []
52        self.dateAmended = None
53        self.specificationLineage = []
54        self.code = None
55        self._predecessor_cl_classificationlegenditem = []
56        self._predecessor_cl_classificationruleitem = []
57        self._predecessor_cl_classificationruleitem = []
58        self._predecessor_cl_classificationlegenditem = []
59        self._predecessor_re_subregisterdescription = []
60        self.alphaCode = []
61        self.fieldOfApplication = []
62        self.itemIdentifier = None
63        self._successor_cl_classificationlegenditem = []
64        self._successor_cl_classificationruleitem = []
65        self._successor_cl_classificationruleitem = []
66        self._successor_cl_classificationlegenditem = []
67        self._successor_re_subregisterdescription = []
68        self.definition = None
69        self.amendmentInformation = []
70        self.name = None
71        self.status = None
72        self.description = None
73        self.dateAccepted = None
74        self.specificationSource = None
75        self.clarificationInformation = []
76        super(CL_ClassificationRuleItem, self).__init__()
77
78    @property
79    def alternativeExpressions(self):   
80        return self._re_registeritem.alternativeExpressions
81
82    @alternativeExpressions.setter
83    def alternativeExpressions(self, value):   
84            self._re_registeritem.alternativeExpressions = value
85
86    @property
87    def additionInformation(self):     
88        return self._re_registeritem.additionInformation
89
90    @additionInformation.setter
91    def additionInformation(self, value):       
92            self._re_registeritem.additionInformation = value
93
94    @property
95    def itemClass(self):       
96        return self._re_registeritem.itemClass
97
98    @itemClass.setter
99    def itemClass(self, value): 
100            self._re_registeritem.itemClass = value
101
102    @property
103    def register(self): 
104        return self._re_registeritem.register
105
106    @register.setter
107    def register(self, value): 
108            self._re_registeritem.register = value
109
110    @property
111    def dateAmended(self):     
112        return self._re_registeritem.dateAmended
113
114    @dateAmended.setter
115    def dateAmended(self, value):       
116            self._re_registeritem.dateAmended = value
117
118    @property
119    def specificationLineage(self):     
120        return self._re_registeritem.specificationLineage
121
122    @specificationLineage.setter
123    def specificationLineage(self, value):     
124            self._re_registeritem.specificationLineage = value
125
126    @property
127    def predecessor(self):     
128        return self._re_registeritem.predecessor
129
130    @predecessor.setter
131    def predecessor(self, value):       
132            self._re_registeritem.predecessor = value
133
134    @property
135    def fieldOfApplication(self):       
136        return self._re_registeritem.fieldOfApplication
137
138    @fieldOfApplication.setter
139    def fieldOfApplication(self, value):       
140            self._re_registeritem.fieldOfApplication = value
141
142    @property
143    def itemIdentifier(self):   
144        return self._re_registeritem.itemIdentifier
145
146    @itemIdentifier.setter
147    def itemIdentifier(self, value):   
148            self._re_registeritem.itemIdentifier = value
149
150    @property
151    def successor(self):       
152        return self._re_registeritem.successor
153
154    @successor.setter
155    def successor(self, value): 
156            self._re_registeritem.successor = value
157
158    @property
159    def definition(self):       
160        return self._re_registeritem.definition
161
162    @definition.setter
163    def definition(self, value):       
164            self._re_registeritem.definition = value
165
166    @property
167    def amendmentInformation(self):     
168        return self._re_registeritem.amendmentInformation
169
170    @amendmentInformation.setter
171    def amendmentInformation(self, value):     
172            self._re_registeritem.amendmentInformation = value
173
174    @property
175    def name(self):     
176        return self._re_registeritem.name
177
178    @name.setter
179    def name(self, value):     
180            self._re_registeritem.name = value
181
182    @property
183    def status(self):   
184        return self._re_registeritem.status
185
186    @status.setter
187    def status(self, value):   
188            self._re_registeritem.status = value
189
190    @property
191    def description(self):     
192        return self._re_registeritem.description
193
194    @description.setter
195    def description(self, value):       
196            self._re_registeritem.description = value
197
198    @property
199    def dateAccepted(self):     
200        return self._re_registeritem.dateAccepted
201
202    @dateAccepted.setter
203    def dateAccepted(self, value):     
204            self._re_registeritem.dateAccepted = value
205
206    @property
207    def specificationSource(self):     
208        return self._re_registeritem.specificationSource
209
210    @specificationSource.setter
211    def specificationSource(self, value):       
212            self._re_registeritem.specificationSource = value
213
214    @property
215    def clarificationInformation(self): 
216        return self._re_registeritem.clarificationInformation
217
218    @clarificationInformation.setter
219    def clarificationInformation(self, value): 
220            self._re_registeritem.clarificationInformation = value
221
222    def __key(self):
223        return (self.alternativeExpressions, self.additionInformation, self.itemClass, self.register, self.dateAmended, self.specificationLineage, self.code, self.predecessor, self.alphaCode, self.fieldOfApplication, self.itemIdentifier, self.successor, self.definition, self.amendmentInformation, self.name, self.status, self.description, self.dateAccepted, self.specificationSource, self.clarificationInformation)
224
225    def __eq__(self, y):
226        '''
227        Cannot compare classes which do not define a "__key" attribute
228        '''
229        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
230            return self.__key() == y.__key()
231        return id(self) == id(y)
232
233    def __hash__(self):
234        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.