source: mauRepo/MolesManager/trunk/src/ea_model/iso_19103_2005_schema_language/basic_types/derived/units_of_measure/time.py @ 8045

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19103_2005_schema_language/basic_types/derived/units_of_measure/time.py@8045
Revision 8045, 927 bytes checked in by mnagni, 8 years ago (diff)

Added many libraries missing in the previous commit.
Adedd an sql file to drop all the tables.

Line 
1
2
3
4
5
6
7
8
9
10
11
12
13from ea_model.iso_19103_2005_schema_language.basic_types.derived.units_of_measure.measure import  Measure
14
15'''
16Created on 04-Jan-2012 09:56:13
17
18@author: mnagni
19'''
20
21class Time(Measure):
22        '''
23                Represents a data entity defined in a UML diagram and supposed to
24                be persisted in a relational database.
25 
26                This class has been genererated automatically using the Apache Velocity project.
27        '''
28        '''
29                Please note that any access to the inner attributes should be done using
30                the given get/set methods and NOT accessing them directly.
31        '''
32        def __init__(self):
33                self._measure = Measure()       
34                self.uom  = None
35                self.value  = None
36                super(Time, self).__init__()
37
38        @property
39        def uom(self):
40                return self._measure.uom
41
42        @uom.setter
43        def uom(self, value):
44                         self._measure.uom = value
45
46        @property
47        def value(self):
48                return self._measure.value
49
50        @value.setter
51        def value(self, value):
52                         self._measure.value = value
Note: See TracBrowser for help on using the repository browser.