source: mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/spatial_representation_information/md_georectified.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/spatial_representation_information/md_georectified.py@8091
Revision 8091, 3.1 KB checked in by mnagni, 8 years ago (diff)

The migration process now includes
1) deployment_data files
2) XML document hash
3) full Dojo support


Line 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21from ea_model.iso_19115_2006_metadata_corrigendum.spatial_representation_information.md_gridspatialrepresentation import  MD_GridSpatialRepresentation
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:09
26
27@author: mnagni
28'''
29
30class MD_Georectified(MD_GridSpatialRepresentation):
31    '''
32        Represents a data entity defined in a UML diagram and supposed to
33        be persisted in a relational database.
34 
35        This class has been genererated automatically using the Apache Velocity project.
36    '''
37    '''
38        Please note that any access to the inner attributes should be done using
39        the given get/set methods and NOT accessing them directly.
40    '''
41    def __init__(self):
42        self._md_gridspatialrepresentation = MD_GridSpatialRepresentation()     
43
44        self.checkPointAvailability = None
45        self.transformationParameterAvailability = None
46        self.centerPoint = None
47        self.checkPointDescription = None
48        self.pointInPixel = None
49        self.cellGeometry = None
50        self.transformationDimensionDescription = None
51        self.cornerPoints = []
52        self.axisDimensionProperties = []
53        self.numberOfDimensions = None
54        self.transformationDimensionMapping = []
55        super(MD_Georectified, self).__init__()
56
57    @property
58    def transformationParameterAvailability(self):     
59        return self._md_gridspatialrepresentation.transformationParameterAvailability
60
61    @transformationParameterAvailability.setter
62    def transformationParameterAvailability(self, value):       
63            self._md_gridspatialrepresentation.transformationParameterAvailability = value
64
65    @property
66    def cellGeometry(self):     
67        return self._md_gridspatialrepresentation.cellGeometry
68
69    @cellGeometry.setter
70    def cellGeometry(self, value):     
71            self._md_gridspatialrepresentation.cellGeometry = value
72
73    @property
74    def axisDimensionProperties(self): 
75        return self._md_gridspatialrepresentation.axisDimensionProperties
76
77    @axisDimensionProperties.setter
78    def axisDimensionProperties(self, value):   
79            self._md_gridspatialrepresentation.axisDimensionProperties = value
80
81    @property
82    def numberOfDimensions(self):       
83        return self._md_gridspatialrepresentation.numberOfDimensions
84
85    @numberOfDimensions.setter
86    def numberOfDimensions(self, value):       
87            self._md_gridspatialrepresentation.numberOfDimensions = value
88
89    def __key(self):
90        return (self.checkPointAvailability, self.transformationParameterAvailability, self.centerPoint, self.checkPointDescription, self.pointInPixel, self.cellGeometry, self.transformationDimensionDescription, self.cornerPoints, self.axisDimensionProperties, self.numberOfDimensions, self.transformationDimensionMapping)
91
92    def __eq__(self, y):
93        '''
94        Cannot compare classes which do not define a "__key" attribute
95        '''
96        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
97            return self.__key() == y.__key()
98        return id(self) == id(y)
99
100    def __hash__(self):
101        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.