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