source: mauRepo/MolesManager/trunk/src/ea_model/iso_19135_2005_procedures_for_registration/re_clarificationinformation.py @ 8089

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

Played with DOJO
New EA library
Addede CEDA_Process to the migration

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_proposalmanagementinformation import  RE_ProposalManagementInformation
22from ascore.utils import has_value
23
24'''
25Created on 14-Feb-2012 17:19:36
26
27@author: mnagni
28'''
29
30class RE_ClarificationInformation(RE_ProposalManagementInformation):
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_proposalmanagementinformation = RE_ProposalManagementInformation()     
43
44        self.controlBodyNotes = None
45        self._item_re_subregisterdescription = None
46        self._item_cl_classificationlegenditem = None
47        self._item_cl_classificationlegenditem = None
48        self._item_cl_classificationruleitem = None
49        self._item_cl_classificationruleitem = None
50        self.disposition = None
51        self.sponsor = None
52        self.dateDisposed = None
53        self.dateProposed = None
54        self.status = None
55        self.proposedChange = None
56        self.controlBodyDecisionEvent = None
57        self.registerManagerNotes = None
58        self.justification = None
59        super(RE_ClarificationInformation, self).__init__()
60
61    @property
62    def controlBodyNotes(self): 
63        return self._re_proposalmanagementinformation.controlBodyNotes
64
65    @controlBodyNotes.setter
66    def controlBodyNotes(self, value): 
67            self._re_proposalmanagementinformation.controlBodyNotes = value
68
69    @property
70    def item(self):     
71        if(has_value(self._item_re_subregisterdescription)):
72            return self._item_re_subregisterdescription
73        if(has_value(self._item_cl_classificationlegenditem)):
74            return self._item_cl_classificationlegenditem
75        if(has_value(self._item_cl_classificationlegenditem)):
76            return self._item_cl_classificationlegenditem
77        if(has_value(self._item_cl_classificationruleitem)):
78            return self._item_cl_classificationruleitem
79        if(has_value(self._item_cl_classificationruleitem)):
80            return self._item_cl_classificationruleitem
81        return  None
82
83    @item.setter
84    def item(self, value):     
85        valueClass = "%s.%s" % (type(value).__module__,type(value).__name__)
86        if valueClass == "ea_model.iso_19135_2005_procedures_for_registration.re_subregisterdescription.RE_SubregisterDescription":
87            self._item_re_subregisterdescription = value
88            self._item_cl_classificationlegenditem = None
89            self._item_cl_classificationlegenditem = None
90            self._item_cl_classificationruleitem = None
91            self._item_cl_classificationruleitem = None
92        if valueClass == "ea_model.iso_19144_1_classification_systems.cl_classificationlegenditem.CL_ClassificationLegendItem":
93            self._item_cl_classificationlegenditem = value
94            self._item_re_subregisterdescription = None
95            self._item_cl_classificationlegenditem = None
96            self._item_cl_classificationruleitem = None
97            self._item_cl_classificationruleitem = None
98        if valueClass == "ea_model.iso_19144_1_classification_systems.cl_classificationlegenditem.CL_ClassificationLegendItem":
99            self._item_cl_classificationlegenditem = value
100            self._item_re_subregisterdescription = None
101            self._item_cl_classificationlegenditem = None
102            self._item_cl_classificationruleitem = None
103            self._item_cl_classificationruleitem = None
104        if valueClass == "ea_model.iso_19144_1_classification_systems.cl_classificationruleitem.CL_ClassificationRuleItem":
105            self._item_cl_classificationruleitem = value
106            self._item_re_subregisterdescription = None
107            self._item_cl_classificationlegenditem = None
108            self._item_cl_classificationlegenditem = None
109            self._item_cl_classificationruleitem = None
110        if valueClass == "ea_model.iso_19144_1_classification_systems.cl_classificationruleitem.CL_ClassificationRuleItem":
111            self._item_cl_classificationruleitem = value
112            self._item_re_subregisterdescription = None
113            self._item_cl_classificationlegenditem = None
114            self._item_cl_classificationlegenditem = None
115            self._item_cl_classificationruleitem = None
116
117    @property
118    def disposition(self):     
119        return self._re_proposalmanagementinformation.disposition
120
121    @disposition.setter
122    def disposition(self, value):       
123            self._re_proposalmanagementinformation.disposition = value
124
125    @property
126    def sponsor(self): 
127        return self._re_proposalmanagementinformation.sponsor
128
129    @sponsor.setter
130    def sponsor(self, value):   
131            self._re_proposalmanagementinformation.sponsor = value
132
133    @property
134    def dateDisposed(self):     
135        return self._re_proposalmanagementinformation.dateDisposed
136
137    @dateDisposed.setter
138    def dateDisposed(self, value):     
139            self._re_proposalmanagementinformation.dateDisposed = value
140
141    @property
142    def dateProposed(self):     
143        return self._re_proposalmanagementinformation.dateProposed
144
145    @dateProposed.setter
146    def dateProposed(self, value):     
147            self._re_proposalmanagementinformation.dateProposed = value
148
149    @property
150    def status(self):   
151        return self._re_proposalmanagementinformation.status
152
153    @status.setter
154    def status(self, value):   
155            self._re_proposalmanagementinformation.status = value
156
157    @property
158    def controlBodyDecisionEvent(self): 
159        return self._re_proposalmanagementinformation.controlBodyDecisionEvent
160
161    @controlBodyDecisionEvent.setter
162    def controlBodyDecisionEvent(self, value): 
163            self._re_proposalmanagementinformation.controlBodyDecisionEvent = value
164
165    @property
166    def registerManagerNotes(self):     
167        return self._re_proposalmanagementinformation.registerManagerNotes
168
169    @registerManagerNotes.setter
170    def registerManagerNotes(self, value):     
171            self._re_proposalmanagementinformation.registerManagerNotes = value
172
173    @property
174    def justification(self):   
175        return self._re_proposalmanagementinformation.justification
176
177    @justification.setter
178    def justification(self, value):     
179            self._re_proposalmanagementinformation.justification = value
180
181    def __key(self):
182        return (self.controlBodyNotes, self.item, self.disposition, self.sponsor, self.dateDisposed, self.dateProposed, self.status, self.proposedChange, self.controlBodyDecisionEvent, self.registerManagerNotes, self.justification)
183
184    def __eq__(self, y):
185        '''
186        Cannot compare classes which do not define a "__key" attribute
187        '''
188        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
189            return self.__key() == y.__key()
190        return id(self) == id(y)
191
192    def __hash__(self):
193        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.