source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_operations/cc_operationparameter.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_operationparameter.py@8091
Revision 8091, 3.1 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_generaloperationparameter import  CC_GeneralOperationParameter
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:09
26
27@author: mnagni
28'''
29
30class CC_OperationParameter(CC_GeneralOperationParameter):
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_generaloperationparameter = CC_GeneralOperationParameter()     
43
44        self.identifier = []
45        self.name = None
46        self.group = []
47        self.remarks = None
48        self._value_cc_operationparametervalue = []
49        self._value_cc_parametervaluegroup = []
50        self.value = []
51        self.alias = []
52        self.minimumOccurs = None
53        super(CC_OperationParameter, self).__init__()
54
55    @property
56    def identifier(self):       
57        return self._cc_generaloperationparameter.identifier
58
59    @identifier.setter
60    def identifier(self, value):       
61            self._cc_generaloperationparameter.identifier = value
62
63    @property
64    def name(self):     
65        return self._cc_generaloperationparameter.name
66
67    @name.setter
68    def name(self, value):     
69            self._cc_generaloperationparameter.name = value
70
71    @property
72    def group(self):   
73        return self._cc_generaloperationparameter.group
74
75    @group.setter
76    def group(self, value):     
77            self._cc_generaloperationparameter.group = value
78
79    @property
80    def remarks(self): 
81        return self._cc_generaloperationparameter.remarks
82
83    @remarks.setter
84    def remarks(self, value):   
85            self._cc_generaloperationparameter.remarks = value
86
87    @property
88    def value(self):   
89        return self._cc_generaloperationparameter.value
90
91    @value.setter
92    def value(self, value):     
93            self._cc_generaloperationparameter.value = value
94
95    @property
96    def alias(self):   
97        return self._cc_generaloperationparameter.alias
98
99    @alias.setter
100    def alias(self, value):     
101            self._cc_generaloperationparameter.alias = value
102
103    @property
104    def minimumOccurs(self):   
105        return self._cc_generaloperationparameter.minimumOccurs
106
107    @minimumOccurs.setter
108    def minimumOccurs(self, value):     
109            self._cc_generaloperationparameter.minimumOccurs = value
110
111    def __key(self):
112        return (self.identifier, self.name, self.group, self.remarks, self.value, self.value, self.alias, self.minimumOccurs)
113
114    def __eq__(self, y):
115        '''
116        Cannot compare classes which do not define a "__key" attribute
117        '''
118        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
119            return self.__key() == y.__key()
120        return id(self) == id(y)
121
122    def __hash__(self):
123        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.