source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_operations/cc_concatenatedoperation.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_operations/cc_concatenatedoperation.py@8091
Revision 8091, 6.4 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.coordinate_operations.cc_coordinateoperation import  CC_CoordinateOperation
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:02
26
27@author: mnagni
28'''
29
30class CC_ConcatenatedOperation(CC_CoordinateOperation):
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._cc_coordinateoperation = CC_CoordinateOperation()         
43
44        self.domainOfValidity = None
45        self.remarks = None
46        self.alias = []
47        self.scope = []
48        self.passThruOperation = []
49        self._targetCRS_sc_singlecrs = None
50        self._targetCRS_sc_compoundcrs = None
51        self.identifier = []
52        self.name = None
53        self.concatOperation = []
54        self._coordinateOperationAccuracy_dq_griddeddatapositionalaccuracy = []
55        self._coordinateOperationAccuracy_dq_relativeinternalpositionalaccuracy = []
56        self._coordinateOperationAccuracy_dq_absoluteexternalpositionalaccuracy = []
57        self._coordOperation_cc_passthroughoperation = []
58        self._coordOperation_cc_concatenatedoperation = []
59        self._coordOperation_cc_singleoperation = []
60        self.operationVersion = None
61        self._sourceCRS_sc_singlecrs = None
62        self._sourceCRS_sc_compoundcrs = None
63        super(CC_ConcatenatedOperation, self).__init__()
64
65    @property
66    def domainOfValidity(self): 
67        return self._cc_coordinateoperation.domainOfValidity
68
69    @domainOfValidity.setter
70    def domainOfValidity(self, value): 
71            self._cc_coordinateoperation.domainOfValidity = value
72
73    @property
74    def remarks(self): 
75        return self._cc_coordinateoperation.remarks
76
77    @remarks.setter
78    def remarks(self, value):   
79            self._cc_coordinateoperation.remarks = value
80
81    @property
82    def alias(self):   
83        return self._cc_coordinateoperation.alias
84
85    @alias.setter
86    def alias(self, value):     
87            self._cc_coordinateoperation.alias = value
88
89    @property
90    def scope(self):   
91        return self._cc_coordinateoperation.scope
92
93    @scope.setter
94    def scope(self, value):     
95            self._cc_coordinateoperation.scope = value
96
97    @property
98    def passThruOperation(self):       
99        return self._cc_coordinateoperation.passThruOperation
100
101    @passThruOperation.setter
102    def passThruOperation(self, value): 
103            self._cc_coordinateoperation.passThruOperation = value
104
105    @property
106    def targetCRS(self):       
107        return self._cc_coordinateoperation.targetCRS
108
109    @targetCRS.setter
110    def targetCRS(self, value): 
111            self._cc_coordinateoperation.targetCRS = value
112
113    @property
114    def identifier(self):       
115        return self._cc_coordinateoperation.identifier
116
117    @identifier.setter
118    def identifier(self, value):       
119            self._cc_coordinateoperation.identifier = value
120
121    @property
122    def name(self):     
123        return self._cc_coordinateoperation.name
124
125    @name.setter
126    def name(self, value):     
127            self._cc_coordinateoperation.name = value
128
129    @property
130    def concatOperation(self): 
131        return self._cc_coordinateoperation.concatOperation
132
133    @concatOperation.setter
134    def concatOperation(self, value):   
135            self._cc_coordinateoperation.concatOperation = value
136
137    @property
138    def coordinateOperationAccuracy(self):     
139        return self._cc_coordinateoperation.coordinateOperationAccuracy
140
141    @coordinateOperationAccuracy.setter
142    def coordinateOperationAccuracy(self, value):       
143            self._cc_coordinateoperation.coordinateOperationAccuracy = value
144
145    @property
146    def coordOperation(self):   
147        ret = []
148        for item in self._coordOperation_cc_passthroughoperation:
149            ret.append(item)
150        for item in self._coordOperation_cc_concatenatedoperation:
151            ret.append(item)
152        for item in self._coordOperation_cc_singleoperation:
153            ret.append(item)
154        return ret
155
156    @coordOperation.setter
157    def coordOperation(self, value):   
158        if isinstance(value, list):
159            self._coordOperation_cc_passthroughoperation[:]
160            self._coordOperation_cc_concatenatedoperation[:]
161            self._coordOperation_cc_singleoperation[:]
162            for item in value:
163                valueClass = "%s.%s" % (type(item).__module__,type(item).__name__)
164                if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_operations.cc_passthroughoperation.CC_PassThroughOperation":
165                    self._coordOperation_cc_passthroughoperation.append(item)
166                    continue
167                if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_operations.cc_concatenatedoperation.CC_ConcatenatedOperation":
168                    self._coordOperation_cc_concatenatedoperation.append(item)
169                    continue
170                if valueClass == "ea_model.iso_19111_referencing_by_coordinates.coordinate_operations.cc_singleoperation.CC_SingleOperation":
171                    self._coordOperation_cc_singleoperation.append(item)
172                    continue
173
174    @property
175    def operationVersion(self): 
176        return self._cc_coordinateoperation.operationVersion
177
178    @operationVersion.setter
179    def operationVersion(self, value): 
180            self._cc_coordinateoperation.operationVersion = value
181
182    @property
183    def sourceCRS(self):       
184        return self._cc_coordinateoperation.sourceCRS
185
186    @sourceCRS.setter
187    def sourceCRS(self, value): 
188            self._cc_coordinateoperation.sourceCRS = value
189
190    def __key(self):
191        return (self.domainOfValidity, self.remarks, self.alias, self.scope, self.passThruOperation, self.targetCRS, self.identifier, self.name, self.concatOperation, self.coordinateOperationAccuracy, self.coordOperation, self.operationVersion, self.sourceCRS)
192
193    def __eq__(self, y):
194        '''
195        Cannot compare classes which do not define a "__key" attribute
196        '''
197        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
198            return self.__key() == y.__key()
199        return id(self) == id(y)
200
201    def __hash__(self):
202        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.