Ignore:
Timestamp:
10/02/12 13:39:16 (8 years ago)
Author:
mnagni
Message:

New ea_model library.
No more use the django.forms. Now uses JSON and Dojo(javascript)
DB creation files are now executed as standard python function (before was used a system execution call)
Added an html example to play/work offline with DOJO

Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_absoluteexternalpositionalaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:47 
     25Created on 10-Feb-2012 12:03:12 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_positionalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_positionalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_positionalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_positionalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_positionalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_positionalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_positionalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_positionalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_positionalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_positionalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_positionalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_positionalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_positionalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_positionalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_positionalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_accuracyofatimemeasurement.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:36 
     25Created on 10-Feb-2012 12:03:16 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_temporalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_temporalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_temporalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_temporalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_temporalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_temporalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_temporalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_temporalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_temporalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_temporalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_temporalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_temporalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_temporalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_temporalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_temporalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completeness.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:45 
     25Created on 10-Feb-2012 12:03:12 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_element.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_element.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_element.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_element.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_element.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_element.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_element.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_element.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_element.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_element.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_element.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_element.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_element.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_element.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_element.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_element.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completenesscommission.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:45 
     25Created on 10-Feb-2012 12:03:14 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_completeness.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_completeness.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_completeness.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_completeness.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_completeness.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_completeness.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_completeness.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_completeness.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_completeness.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_completeness.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_completeness.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_completeness.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_completeness.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_completeness.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_completeness.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_completeness.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completenessomission.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:48 
     25Created on 10-Feb-2012 12:03:10 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_completeness.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_completeness.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_completeness.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_completeness.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_completeness.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_completeness.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_completeness.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_completeness.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_completeness.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_completeness.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_completeness.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_completeness.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_completeness.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_completeness.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_completeness.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_completeness.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conceptualconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:46 
     25Created on 10-Feb-2012 12:03:16 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_logicalconsistency.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_logicalconsistency.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_logicalconsistency.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_logicalconsistency.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_logicalconsistency.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_logicalconsistency.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_logicalconsistency.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_logicalconsistency.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_logicalconsistency.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_logicalconsistency.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_logicalconsistency.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_logicalconsistency.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_logicalconsistency.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_logicalconsistency.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_logicalconsistency.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conformanceresult.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:42 
     25Created on 10-Feb-2012 12:03:12 
    2326 
    2427@author: mnagni 
     
    4447        super(DQ_ConformanceResult, self).__init__() 
    4548 
    46  
    47  
    48  
    49  
    50  
    51  
    5249    def __key(self): 
    5350        return (self.specification, self.pass_, self.explanation) 
    5451 
    55     def __eq__(x, y): 
     52    def __eq__(self, y): 
    5653        ''' 
    5754        Cannot compare classes which do not define a "__key" attribute  
    5855        ''' 
    59         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    60             return x.__key() == y.__key() 
    61         return id(x) == id(y) 
     56        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     57            return self.__key() == y.__key() 
     58        return id(self) == id(y) 
    6259 
    6360    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_dataquality.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:37 
     24Created on 10-Feb-2012 12:03:07 
    2225 
    2326@author: mnagni 
     
    3942        self.lineage = None 
    4043        self.scope = None 
     44        self._report_dq_temporalaccuracy = [] 
    4145        self._report_dq_logicalconsistency = [] 
    4246        self._report_qe_usability = [] 
    43         self._report_dq_temporalaccuracy = [] 
    4447        self._report_dq_positionalaccuracy = [] 
     48        self._report_dq_completeness = [] 
    4549        self._report_dq_thematicaccuracy = [] 
    46         self._report_dq_completeness = [] 
    4750        super(DQ_DataQuality, self).__init__() 
    4851 
    49  
    50  
    51  
    52  
    5352    @property 
    54     def report(self): 
    55         if(has_value(self._report_dq_logicalconsistency)): 
    56             return self._report_dq_logicalconsistency 
    57         if(has_value(self._report_qe_usability)): 
    58             return self._report_qe_usability 
    59         if(has_value(self._report_dq_temporalaccuracy)): 
    60             return self._report_dq_temporalaccuracy 
    61         if(has_value(self._report_dq_positionalaccuracy)): 
    62             return self._report_dq_positionalaccuracy 
    63         if(has_value(self._report_dq_thematicaccuracy)): 
    64             return self._report_dq_thematicaccuracy 
    65         if(has_value(self._report_dq_completeness)): 
    66             return self._report_dq_completeness 
    67         return  [] 
     53    def report(self):    
     54        ret = [] 
     55        for item in self._report_dq_temporalaccuracy: 
     56            ret.append(item) 
     57        for item in self._report_dq_logicalconsistency: 
     58            ret.append(item) 
     59        for item in self._report_qe_usability: 
     60            ret.append(item) 
     61        for item in self._report_dq_positionalaccuracy: 
     62            ret.append(item) 
     63        for item in self._report_dq_completeness: 
     64            ret.append(item) 
     65        for item in self._report_dq_thematicaccuracy: 
     66            ret.append(item) 
     67        return ret 
    6868 
    6969    @report.setter 
    70     def report(self, value): 
    71         valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
    72         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_logicalconsistency.DQ_LogicalConsistency": 
    73             self._report_dq_logicalconsistency = value 
    74             self._report_qe_usability = None 
    75             self._report_dq_temporalaccuracy = None 
    76             self._report_dq_positionalaccuracy = None 
    77             self._report_dq_thematicaccuracy = None 
    78             self._report_dq_completeness = None 
    79         if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_usability.QE_Usability": 
    80             self._report_qe_usability = value 
    81             self._report_dq_logicalconsistency = None 
    82             self._report_dq_temporalaccuracy = None 
    83             self._report_dq_positionalaccuracy = None 
    84             self._report_dq_thematicaccuracy = None 
    85             self._report_dq_completeness = None 
    86         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_temporalaccuracy.DQ_TemporalAccuracy": 
    87             self._report_dq_temporalaccuracy = value 
    88             self._report_dq_logicalconsistency = None 
    89             self._report_qe_usability = None 
    90             self._report_dq_positionalaccuracy = None 
    91             self._report_dq_thematicaccuracy = None 
    92             self._report_dq_completeness = None 
    93         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_positionalaccuracy.DQ_PositionalAccuracy": 
    94             self._report_dq_positionalaccuracy = value 
    95             self._report_dq_logicalconsistency = None 
    96             self._report_qe_usability = None 
    97             self._report_dq_temporalaccuracy = None 
    98             self._report_dq_thematicaccuracy = None 
    99             self._report_dq_completeness = None 
    100         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_thematicaccuracy.DQ_ThematicAccuracy": 
    101             self._report_dq_thematicaccuracy = value 
    102             self._report_dq_logicalconsistency = None 
    103             self._report_qe_usability = None 
    104             self._report_dq_temporalaccuracy = None 
    105             self._report_dq_positionalaccuracy = None 
    106             self._report_dq_completeness = None 
    107         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_completeness.DQ_Completeness": 
    108             self._report_dq_completeness = value 
    109             self._report_dq_logicalconsistency = None 
    110             self._report_qe_usability = None 
    111             self._report_dq_temporalaccuracy = None 
    112             self._report_dq_positionalaccuracy = None 
    113             self._report_dq_thematicaccuracy = None 
     70    def report(self, value):     
     71        if isinstance(value, list): 
     72            self._report_dq_temporalaccuracy[:] 
     73            self._report_dq_logicalconsistency[:] 
     74            self._report_qe_usability[:] 
     75            self._report_dq_positionalaccuracy[:] 
     76            self._report_dq_completeness[:] 
     77            self._report_dq_thematicaccuracy[:] 
     78            for item in value: 
     79                valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     80                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_temporalaccuracy.DQ_TemporalAccuracy": 
     81                    self._report_dq_temporalaccuracy.append(item) 
     82                    continue 
     83                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_logicalconsistency.DQ_LogicalConsistency": 
     84                    self._report_dq_logicalconsistency.append(item) 
     85                    continue 
     86                if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_usability.QE_Usability": 
     87                    self._report_qe_usability.append(item) 
     88                    continue 
     89                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_positionalaccuracy.DQ_PositionalAccuracy": 
     90                    self._report_dq_positionalaccuracy.append(item) 
     91                    continue 
     92                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_completeness.DQ_Completeness": 
     93                    self._report_dq_completeness.append(item) 
     94                    continue 
     95                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_thematicaccuracy.DQ_ThematicAccuracy": 
     96                    self._report_dq_thematicaccuracy.append(item) 
     97                    continue 
    11498 
    11599    def __key(self): 
    116100        return (self.lineage, self.scope, self.report) 
    117101 
    118     def __eq__(x, y): 
     102    def __eq__(self, y): 
    119103        ''' 
    120104        Cannot compare classes which do not define a "__key" attribute  
    121105        ''' 
    122         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    123             return x.__key() == y.__key() 
    124         return id(x) == id(y) 
     106        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     107            return self.__key() == y.__key() 
     108        return id(self) == id(y) 
    125109 
    126110    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_domainconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:47 
     25Created on 10-Feb-2012 12:03:11 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_logicalconsistency.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_logicalconsistency.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_logicalconsistency.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_logicalconsistency.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_logicalconsistency.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_logicalconsistency.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_logicalconsistency.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_logicalconsistency.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_logicalconsistency.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_logicalconsistency.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_logicalconsistency.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_logicalconsistency.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_logicalconsistency.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_logicalconsistency.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_logicalconsistency.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_element.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:44 
     24Created on 10-Feb-2012 12:03:16 
    2225 
    2326@author: mnagni 
     
    4043        self.nameOfMeasure = [] 
    4144        self.evaluationMethodDescription = None 
     45        self._result_dq_conformanceresult = [] 
     46        self._result_dq_quantitativeresult = [] 
    4247        self._result_qe_coverageresult = [] 
    43         self._result_dq_quantitativeresult = [] 
    44         self._result_dq_conformanceresult = [] 
    4548        self.evaluationProcedure = None 
    4649        self.measureIdentification = None 
     
    4952        super(DQ_Element, self).__init__() 
    5053 
    51  
    52  
    53  
    54  
    55  
    56  
    5754    @property 
    58     def result(self): 
    59         if(has_value(self._result_qe_coverageresult)): 
    60             return self._result_qe_coverageresult 
    61         if(has_value(self._result_dq_quantitativeresult)): 
    62             return self._result_dq_quantitativeresult 
    63         if(has_value(self._result_dq_conformanceresult)): 
    64             return self._result_dq_conformanceresult 
    65         return  [] 
     55    def result(self):    
     56        ret = [] 
     57        for item in self._result_dq_conformanceresult: 
     58            ret.append(item) 
     59        for item in self._result_dq_quantitativeresult: 
     60            ret.append(item) 
     61        for item in self._result_qe_coverageresult: 
     62            ret.append(item) 
     63        return ret 
    6664 
    6765    @result.setter 
    68     def result(self, value): 
    69         valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
    70         if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_coverageresult.QE_CoverageResult": 
    71             self._result_qe_coverageresult = value 
    72             self._result_dq_quantitativeresult = None 
    73             self._result_dq_conformanceresult = None 
    74         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_quantitativeresult.DQ_QuantitativeResult": 
    75             self._result_dq_quantitativeresult = value 
    76             self._result_qe_coverageresult = None 
    77             self._result_dq_conformanceresult = None 
    78         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_conformanceresult.DQ_ConformanceResult": 
    79             self._result_dq_conformanceresult = value 
    80             self._result_qe_coverageresult = None 
    81             self._result_dq_quantitativeresult = None 
    82  
    83  
    84  
    85  
    86  
    87  
    88  
    89  
     66    def result(self, value):     
     67        if isinstance(value, list): 
     68            self._result_dq_conformanceresult[:] 
     69            self._result_dq_quantitativeresult[:] 
     70            self._result_qe_coverageresult[:] 
     71            for item in value: 
     72                valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     73                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_conformanceresult.DQ_ConformanceResult": 
     74                    self._result_dq_conformanceresult.append(item) 
     75                    continue 
     76                if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_quantitativeresult.DQ_QuantitativeResult": 
     77                    self._result_dq_quantitativeresult.append(item) 
     78                    continue 
     79                if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_coverageresult.QE_CoverageResult": 
     80                    self._result_qe_coverageresult.append(item) 
     81                    continue 
    9082 
    9183    def __key(self): 
    9284        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    9385 
    94     def __eq__(x, y): 
     86    def __eq__(self, y): 
    9587        ''' 
    9688        Cannot compare classes which do not define a "__key" attribute  
    9789        ''' 
    98         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    99             return x.__key() == y.__key() 
    100         return id(x) == id(y) 
     90        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     91            return self.__key() == y.__key() 
     92        return id(self) == id(y) 
    10193 
    10294    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_evaluationmethodtypecode.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:46 
     25Created on 10-Feb-2012 12:03:10 
    2326 
    2427@author: mnagni 
     
    3235        This class has been genererated automatically using the Apache Velocity project. 
    3336    ''' 
    34     cl_directinternal = "directInternal"  
    3537    cl_directexternal = "directExternal"  
    3638    cl_indirect = "indirect"  
     39    cl_directinternal = "directInternal"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_formatconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:43 
     25Created on 10-Feb-2012 12:03:14 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_logicalconsistency.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_logicalconsistency.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_logicalconsistency.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_logicalconsistency.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_logicalconsistency.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_logicalconsistency.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_logicalconsistency.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_logicalconsistency.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_logicalconsistency.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_logicalconsistency.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_logicalconsistency.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_logicalconsistency.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_logicalconsistency.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_logicalconsistency.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_logicalconsistency.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_griddeddatapositionalaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:42 
     25Created on 10-Feb-2012 12:03:11 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_positionalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_positionalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_positionalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_positionalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_positionalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_positionalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_positionalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_positionalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_positionalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_positionalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_positionalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_positionalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_positionalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_positionalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_positionalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_logicalconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:43 
     25Created on 10-Feb-2012 12:03:07 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_element.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_element.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_element.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_element.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_element.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_element.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_element.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_element.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_element.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_element.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_element.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_element.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_element.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_element.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_element.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_element.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_nonquantitativeattributeaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:44 
     25Created on 10-Feb-2012 12:03:09 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_thematicaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_thematicaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_thematicaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_thematicaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_thematicaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_thematicaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_thematicaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_thematicaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_thematicaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_thematicaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_thematicaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_thematicaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_thematicaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_thematicaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_thematicaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_positionalaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:37 
     25Created on 10-Feb-2012 12:03:15 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_element.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_element.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_element.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_element.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_element.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_element.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_element.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_element.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_element.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_element.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_element.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_element.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_element.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_element.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_element.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_element.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_quantitativeattributeaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:39 
     25Created on 10-Feb-2012 12:03:13 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_thematicaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_thematicaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_thematicaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_thematicaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_thematicaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_thematicaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_thematicaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_thematicaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_thematicaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_thematicaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_thematicaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_thematicaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_thematicaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_thematicaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_thematicaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_quantitativeresult.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:38 
     25Created on 10-Feb-2012 12:03:11 
    2326 
    2427@author: mnagni 
     
    4548        super(DQ_QuantitativeResult, self).__init__() 
    4649 
    47  
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    5550    def __key(self): 
    5651        return (self.errorStatistic, self.value, self.valueUnit, self.valueType) 
    5752 
    58     def __eq__(x, y): 
     53    def __eq__(self, y): 
    5954        ''' 
    6055        Cannot compare classes which do not define a "__key" attribute  
    6156        ''' 
    62         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    63             return x.__key() == y.__key() 
    64         return id(x) == id(y) 
     57        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     58            return self.__key() == y.__key() 
     59        return id(self) == id(y) 
    6560 
    6661    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_relativeinternalpositionalaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:47 
     25Created on 10-Feb-2012 12:03:09 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_positionalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_positionalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_positionalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_positionalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_positionalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_positionalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_positionalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_positionalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_positionalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_positionalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_positionalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_positionalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_positionalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_positionalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_positionalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_result.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:44 
     24Created on 10-Feb-2012 12:03:10 
    2225 
    2326@author: mnagni 
     
    4245        return () 
    4346 
    44     def __eq__(x, y): 
     47    def __eq__(self, y): 
    4548        ''' 
    4649        Cannot compare classes which do not define a "__key" attribute  
    4750        ''' 
    48         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    49             return x.__key() == y.__key() 
    50         return id(x) == id(y) 
     51        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     52            return self.__key() == y.__key() 
     53        return id(self) == id(y) 
    5154 
    5255    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_scope.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:45 
     24Created on 10-Feb-2012 12:03:11 
    2225 
    2326@author: mnagni 
     
    3841 
    3942        self.extent = None 
     43        self.levelDescription = [] 
    4044        self.level = None 
    41         self.levelDescription = [] 
    4245        super(DQ_Scope, self).__init__() 
    4346 
     47    def __key(self): 
     48        return (self.extent, self.levelDescription, self.level) 
    4449 
    45  
    46  
    47  
    48  
    49  
    50     def __key(self): 
    51         return (self.extent, self.level, self.levelDescription) 
    52  
    53     def __eq__(x, y): 
     50    def __eq__(self, y): 
    5451        ''' 
    5552        Cannot compare classes which do not define a "__key" attribute  
    5653        ''' 
    57         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    58             return x.__key() == y.__key() 
    59         return id(x) == id(y) 
     54        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     55            return self.__key() == y.__key() 
     56        return id(self) == id(y) 
    6057 
    6158    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:47 
     25Created on 10-Feb-2012 12:03:14 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_element.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_element.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_element.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_element.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_element.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_element.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_element.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_element.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_element.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_element.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_element.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_element.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_element.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_element.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_element.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_element.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:43 
     25Created on 10-Feb-2012 12:03:14 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_temporalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_temporalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_temporalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_temporalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_temporalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_temporalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_temporalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_temporalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_temporalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_temporalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_temporalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_temporalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_temporalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_temporalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_temporalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalvalidity.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:44 
     25Created on 10-Feb-2012 12:03:04 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_temporalaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_temporalaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_temporalaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_temporalaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_temporalaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_temporalaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_temporalaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_temporalaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_temporalaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_temporalaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_temporalaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_temporalaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_temporalaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_temporalaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_temporalaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_thematicaccuracy.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:38 
     25Created on 10-Feb-2012 12:03:16 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_element.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_element.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_element.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_element.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_element.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_element.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_element.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_element.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_element.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_element.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_element.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_element.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_element.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_element.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_element.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_element.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_thematicclassificationcorrectness.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:46 
     25Created on 10-Feb-2012 12:03:12 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_thematicaccuracy.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_thematicaccuracy.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_thematicaccuracy.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_thematicaccuracy.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_thematicaccuracy.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_thematicaccuracy.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_thematicaccuracy.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_thematicaccuracy.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_thematicaccuracy.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_thematicaccuracy.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_thematicaccuracy.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_thematicaccuracy.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_thematicaccuracy.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_thematicaccuracy.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_thematicaccuracy.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_topologicalconsistency.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:49 
     25Created on 10-Feb-2012 12:03:07 
    2326 
    2427@author: mnagni 
     
    4245        self.nameOfMeasure = [] 
    4346        self.evaluationMethodDescription = None 
     47        self._result_dq_conformanceresult = [] 
     48        self._result_dq_quantitativeresult = [] 
    4449        self._result_qe_coverageresult = [] 
    45         self._result_dq_quantitativeresult = [] 
    46         self._result_dq_conformanceresult = [] 
    4750        self.evaluationProcedure = None 
    4851        self.measureIdentification = None 
     
    5255 
    5356    @property 
    54     def evaluationMethodType(self): 
     57    def evaluationMethodType(self):      
    5558        return self._dq_logicalconsistency.evaluationMethodType 
    5659 
    5760    @evaluationMethodType.setter 
    58     def evaluationMethodType(self, value): 
     61    def evaluationMethodType(self, value):       
    5962            self._dq_logicalconsistency.evaluationMethodType = value 
    6063 
    6164    @property 
    62     def nameOfMeasure(self): 
     65    def nameOfMeasure(self):     
    6366        return self._dq_logicalconsistency.nameOfMeasure 
    6467 
    6568    @nameOfMeasure.setter 
    66     def nameOfMeasure(self, value): 
     69    def nameOfMeasure(self, value):      
    6770            self._dq_logicalconsistency.nameOfMeasure = value 
    6871 
    6972    @property 
    70     def evaluationMethodDescription(self): 
     73    def evaluationMethodDescription(self):       
    7174        return self._dq_logicalconsistency.evaluationMethodDescription 
    7275 
    7376    @evaluationMethodDescription.setter 
    74     def evaluationMethodDescription(self, value): 
     77    def evaluationMethodDescription(self, value):        
    7578            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7679 
    7780    @property 
    78     def result(self): 
     81    def result(self):    
    7982        return self._dq_logicalconsistency.result 
    8083 
    8184    @result.setter 
    82     def result(self, value): 
     85    def result(self, value):     
    8386            self._dq_logicalconsistency.result = value 
    8487 
    8588    @property 
    86     def evaluationProcedure(self): 
     89    def evaluationProcedure(self):       
    8790        return self._dq_logicalconsistency.evaluationProcedure 
    8891 
    8992    @evaluationProcedure.setter 
    90     def evaluationProcedure(self, value): 
     93    def evaluationProcedure(self, value):        
    9194            self._dq_logicalconsistency.evaluationProcedure = value 
    9295 
    9396    @property 
    94     def measureIdentification(self): 
     97    def measureIdentification(self):     
    9598        return self._dq_logicalconsistency.measureIdentification 
    9699 
    97100    @measureIdentification.setter 
    98     def measureIdentification(self, value): 
     101    def measureIdentification(self, value):      
    99102            self._dq_logicalconsistency.measureIdentification = value 
    100103 
    101104    @property 
    102     def dateTime(self): 
     105    def dateTime(self):  
    103106        return self._dq_logicalconsistency.dateTime 
    104107 
    105108    @dateTime.setter 
    106     def dateTime(self, value): 
     109    def dateTime(self, value):   
    107110            self._dq_logicalconsistency.dateTime = value 
    108111 
    109112    @property 
    110     def measureDescription(self): 
     113    def measureDescription(self):        
    111114        return self._dq_logicalconsistency.measureDescription 
    112115 
    113116    @measureDescription.setter 
    114     def measureDescription(self, value): 
     117    def measureDescription(self, value):         
    115118            self._dq_logicalconsistency.measureDescription = value 
    116119 
     
    118121        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.evaluationProcedure, self.measureIdentification, self.dateTime, self.measureDescription) 
    119122 
    120     def __eq__(x, y): 
     123    def __eq__(self, y): 
    121124        ''' 
    122125        Cannot compare classes which do not define a "__key" attribute  
    123126        ''' 
    124         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    125             return x.__key() == y.__key() 
    126         return id(x) == id(y) 
     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) 
    127130 
    128131    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_lineage.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:45 
     24Created on 10-Feb-2012 12:03:11 
    2225 
    2326@author: mnagni 
     
    4245        super(LI_Lineage, self).__init__() 
    4346 
    44  
    45  
    46  
    47  
    48  
    49  
    5047    def __key(self): 
    5148        return (self.processStep, self.statement, self.source) 
    5249 
    53     def __eq__(x, y): 
     50    def __eq__(self, y): 
    5451        ''' 
    5552        Cannot compare classes which do not define a "__key" attribute  
    5653        ''' 
    57         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    58             return x.__key() == y.__key() 
    59         return id(x) == id(y) 
     54        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     55            return self.__key() == y.__key() 
     56        return id(self) == id(y) 
    6057 
    6158    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_processstep.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:45 
     24Created on 10-Feb-2012 12:03:05 
    2225 
    2326@author: mnagni 
     
    4447        super(LI_ProcessStep, self).__init__() 
    4548 
    46  
    47  
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    5649    def __key(self): 
    5750        return (self.description, self.rationale, self.processor, self.source, self.dateTime) 
    5851 
    59     def __eq__(x, y): 
     52    def __eq__(self, y): 
    6053        ''' 
    6154        Cannot compare classes which do not define a "__key" attribute  
    6255        ''' 
    63         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    64             return x.__key() == y.__key() 
    65         return id(x) == id(y) 
     56        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     57            return self.__key() == y.__key() 
     58        return id(self) == id(y) 
    6659 
    6760    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_source.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:45 
     24Created on 10-Feb-2012 12:03:11 
    2225 
    2326@author: mnagni 
     
    3942        self.scaleDenominator = None 
    4043        self.sourceExtent = [] 
     44        self.sourceCitation = None 
    4145        self.description = None 
    42         self.sourceCitation = None 
    4346        self.sourceStep = [] 
    4447        self.sourceReferenceSystem = None 
    4548        super(LI_Source, self).__init__() 
    4649 
     50    def __key(self): 
     51        return (self.scaleDenominator, self.sourceExtent, self.sourceCitation, self.description, self.sourceStep, self.sourceReferenceSystem) 
    4752 
    48  
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    56  
    57  
    58  
    59     def __key(self): 
    60         return (self.scaleDenominator, self.sourceExtent, self.description, self.sourceCitation, self.sourceStep, self.sourceReferenceSystem) 
    61  
    62     def __eq__(x, y): 
     53    def __eq__(self, y): 
    6354        ''' 
    6455        Cannot compare classes which do not define a "__key" attribute  
    6556        ''' 
    66         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    67             return x.__key() == y.__key() 
    68         return id(x) == id(y) 
     57        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     58            return self.__key() == y.__key() 
     59        return id(self) == id(y) 
    6960 
    7061    def __hash__(self): 
Note: See TracChangeset for help on using the changeset viewer.