source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/datums/cd_verticaldatum.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/datums/cd_verticaldatum.py@8091
Revision 8091, 3.5 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_19111_referencing_by_coordinates.datums.cd_datum import  CD_Datum
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:05
26
27@author: mnagni
28'''
29
30class CD_VerticalDatum(CD_Datum):
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._cd_datum = CD_Datum()     
43
44        self.identifier = []
45        self.name = None
46        self.domainOfValidity = None
47        self.remarks = None
48        self._referenceSystem_tm_temporalcrs = []
49        self._referenceSystem_sc_imagecrs = []
50        self._referenceSystem_sc_verticalcrs = []
51        self._referenceSystem_sc_engineeringcrs = []
52        self._referenceSystem_sc_geodeticcrs = []
53        self._referenceSystem_sc_generalderivedcrs = []
54        self.referenceSystem = []
55        self.alias = []
56        self.realizationEpoch = None
57        self.scope = []
58        self.anchorDefinition = None
59        super(CD_VerticalDatum, self).__init__()
60
61    @property
62    def identifier(self):       
63        return self._cd_datum.identifier
64
65    @identifier.setter
66    def identifier(self, value):       
67            self._cd_datum.identifier = value
68
69    @property
70    def name(self):     
71        return self._cd_datum.name
72
73    @name.setter
74    def name(self, value):     
75            self._cd_datum.name = value
76
77    @property
78    def domainOfValidity(self): 
79        return self._cd_datum.domainOfValidity
80
81    @domainOfValidity.setter
82    def domainOfValidity(self, value): 
83            self._cd_datum.domainOfValidity = value
84
85    @property
86    def remarks(self): 
87        return self._cd_datum.remarks
88
89    @remarks.setter
90    def remarks(self, value):   
91            self._cd_datum.remarks = value
92
93    @property
94    def referenceSystem(self): 
95        return self._cd_datum.referenceSystem
96
97    @referenceSystem.setter
98    def referenceSystem(self, value):   
99            self._cd_datum.referenceSystem = value
100
101    @property
102    def alias(self):   
103        return self._cd_datum.alias
104
105    @alias.setter
106    def alias(self, value):     
107            self._cd_datum.alias = value
108
109    @property
110    def realizationEpoch(self): 
111        return self._cd_datum.realizationEpoch
112
113    @realizationEpoch.setter
114    def realizationEpoch(self, value): 
115            self._cd_datum.realizationEpoch = value
116
117    @property
118    def scope(self):   
119        return self._cd_datum.scope
120
121    @scope.setter
122    def scope(self, value):     
123            self._cd_datum.scope = value
124
125    @property
126    def anchorDefinition(self): 
127        return self._cd_datum.anchorDefinition
128
129    @anchorDefinition.setter
130    def anchorDefinition(self, value): 
131            self._cd_datum.anchorDefinition = value
132
133    def __key(self):
134        return (self.identifier, self.name, self.domainOfValidity, self.remarks, self.referenceSystem, self.referenceSystem, self.alias, self.realizationEpoch, self.scope, self.anchorDefinition)
135
136    def __eq__(self, y):
137        '''
138        Cannot compare classes which do not define a "__key" attribute
139        '''
140        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
141            return self.__key() == y.__key()
142        return id(self) == id(y)
143
144    def __hash__(self):
145        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.