source: mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/identification_information/md_dataidentification.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/identification_information/md_dataidentification.py@8091
Revision 8091, 5.2 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.identification_information.md_identification import  MD_Identification
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:09
26
27@author: mnagni
28'''
29
30class MD_DataIdentification(MD_Identification):
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_identification = MD_Identification()   
43
44        self.descriptiveKeywords = []
45        self.pointOfContact = []
46        self.language = []
47        self.graphicOverview = []
48        self.resourceMaintenance = []
49        self.extent = []
50        self.purpose = None
51        self.characterSet = []
52        self.environmentDescription = None
53        self.citation = None
54        self.spatialRepresentationType = []
55        self.abstract = None
56        self.status = []
57        self._resourceConstraints_md_securityconstraints = []
58        self._resourceConstraints_md_legalconstraints = []
59        self.spatialResolution = []
60        self.topicCategory = []
61        self.resourceFormat = []
62        self.aggregationInfo = []
63        self.resourceSpecificUsage = []
64        self.supplementalInformation = None
65        self.credit = []
66        super(MD_DataIdentification, self).__init__()
67
68    @property
69    def descriptiveKeywords(self):     
70        return self._md_identification.descriptiveKeywords
71
72    @descriptiveKeywords.setter
73    def descriptiveKeywords(self, value):       
74            self._md_identification.descriptiveKeywords = value
75
76    @property
77    def pointOfContact(self):   
78        return self._md_identification.pointOfContact
79
80    @pointOfContact.setter
81    def pointOfContact(self, value):   
82            self._md_identification.pointOfContact = value
83
84    @property
85    def graphicOverview(self): 
86        return self._md_identification.graphicOverview
87
88    @graphicOverview.setter
89    def graphicOverview(self, value):   
90            self._md_identification.graphicOverview = value
91
92    @property
93    def resourceMaintenance(self):     
94        return self._md_identification.resourceMaintenance
95
96    @resourceMaintenance.setter
97    def resourceMaintenance(self, value):       
98            self._md_identification.resourceMaintenance = value
99
100    @property
101    def purpose(self): 
102        return self._md_identification.purpose
103
104    @purpose.setter
105    def purpose(self, value):   
106            self._md_identification.purpose = value
107
108    @property
109    def citation(self): 
110        return self._md_identification.citation
111
112    @citation.setter
113    def citation(self, value): 
114            self._md_identification.citation = value
115
116    @property
117    def abstract(self): 
118        return self._md_identification.abstract
119
120    @abstract.setter
121    def abstract(self, value): 
122            self._md_identification.abstract = value
123
124    @property
125    def status(self):   
126        return self._md_identification.status
127
128    @status.setter
129    def status(self, value):   
130            self._md_identification.status = value
131
132    @property
133    def resourceConstraints(self):     
134        return self._md_identification.resourceConstraints
135
136    @resourceConstraints.setter
137    def resourceConstraints(self, value):       
138            self._md_identification.resourceConstraints = value
139
140    @property
141    def resourceFormat(self):   
142        return self._md_identification.resourceFormat
143
144    @resourceFormat.setter
145    def resourceFormat(self, value):   
146            self._md_identification.resourceFormat = value
147
148    @property
149    def aggregationInfo(self): 
150        return self._md_identification.aggregationInfo
151
152    @aggregationInfo.setter
153    def aggregationInfo(self, value):   
154            self._md_identification.aggregationInfo = value
155
156    @property
157    def resourceSpecificUsage(self):   
158        return self._md_identification.resourceSpecificUsage
159
160    @resourceSpecificUsage.setter
161    def resourceSpecificUsage(self, value):     
162            self._md_identification.resourceSpecificUsage = value
163
164    @property
165    def credit(self):   
166        return self._md_identification.credit
167
168    @credit.setter
169    def credit(self, value):   
170            self._md_identification.credit = value
171
172    def __key(self):
173        return (self.descriptiveKeywords, self.pointOfContact, self.language, self.graphicOverview, self.resourceMaintenance, self.extent, self.purpose, self.characterSet, self.environmentDescription, self.citation, self.spatialRepresentationType, self.abstract, self.status, self.resourceConstraints, self.spatialResolution, self.topicCategory, self.resourceFormat, self.aggregationInfo, self.resourceSpecificUsage, self.supplementalInformation, self.credit)
174
175    def __eq__(self, y):
176        '''
177        Cannot compare classes which do not define a "__key" attribute
178        '''
179        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
180            return self.__key() == y.__key()
181        return id(self) == id(y)
182
183    def __hash__(self):
184        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.