source: mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conceptualconsistency.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conceptualconsistency.py@8091
Revision 8091, 3.7 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_19115_2006_metadata_corrigendum.data_quality_information.dq_logicalconsistency import  DQ_LogicalConsistency
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:10
26
27@author: mnagni
28'''
29
30class DQ_ConceptualConsistency(DQ_LogicalConsistency):
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._dq_logicalconsistency = DQ_LogicalConsistency()   
43
44        self.evaluationMethodType = None
45        self.nameOfMeasure = []
46        self.evaluationMethodDescription = None
47        self._result_dq_quantitativeresult = []
48        self._result_dq_conformanceresult = []
49        self._result_qe_coverageresult = []
50        self.evaluationProcedure = None
51        self.measureIdentification = None
52        self.dateTime = []
53        self.measureDescription = None
54        super(DQ_ConceptualConsistency, self).__init__()
55
56    @property
57    def evaluationMethodType(self):     
58        return self._dq_logicalconsistency.evaluationMethodType
59
60    @evaluationMethodType.setter
61    def evaluationMethodType(self, value):     
62            self._dq_logicalconsistency.evaluationMethodType = value
63
64    @property
65    def nameOfMeasure(self):   
66        return self._dq_logicalconsistency.nameOfMeasure
67
68    @nameOfMeasure.setter
69    def nameOfMeasure(self, value):     
70            self._dq_logicalconsistency.nameOfMeasure = value
71
72    @property
73    def evaluationMethodDescription(self):     
74        return self._dq_logicalconsistency.evaluationMethodDescription
75
76    @evaluationMethodDescription.setter
77    def evaluationMethodDescription(self, value):       
78            self._dq_logicalconsistency.evaluationMethodDescription = value
79
80    @property
81    def result(self):   
82        return self._dq_logicalconsistency.result
83
84    @result.setter
85    def result(self, value):   
86            self._dq_logicalconsistency.result = value
87
88    @property
89    def evaluationProcedure(self):     
90        return self._dq_logicalconsistency.evaluationProcedure
91
92    @evaluationProcedure.setter
93    def evaluationProcedure(self, value):       
94            self._dq_logicalconsistency.evaluationProcedure = value
95
96    @property
97    def measureIdentification(self):   
98        return self._dq_logicalconsistency.measureIdentification
99
100    @measureIdentification.setter
101    def measureIdentification(self, value):     
102            self._dq_logicalconsistency.measureIdentification = value
103
104    @property
105    def dateTime(self): 
106        return self._dq_logicalconsistency.dateTime
107
108    @dateTime.setter
109    def dateTime(self, value): 
110            self._dq_logicalconsistency.dateTime = value
111
112    @property
113    def measureDescription(self):       
114        return self._dq_logicalconsistency.measureDescription
115
116    @measureDescription.setter
117    def measureDescription(self, value):       
118            self._dq_logicalconsistency.measureDescription = value
119
120    def __key(self):
121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription)
122
123    def __eq__(self, y):
124        '''
125        Cannot compare classes which do not define a "__key" attribute
126        '''
127        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
128            return self.__key() == y.__key()
129        return id(self) == id(y)
130
131    def __hash__(self):
132        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.