source: mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2_2009_metadata___imagery/metadata_entity_set___imagery/mi_metadata.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2_2009_metadata___imagery/metadata_entity_set___imagery/mi_metadata.py@8091
Revision 8091, 9.3 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.metadata_entity_set_information.md_metadata import  MD_Metadata
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:05
26
27@author: mnagni
28'''
29
30class MI_Metadata(MD_Metadata):
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_metadata = MD_Metadata()       
43
44        self.fileIdentifier = None
45        self.dataSet = None
46        self._propertyType_gf_attributetype = []
47        self._propertyType_gf_associationrole = []
48        self._propertyType_gf_operation = []
49        self.applicationSchemaInfo = []
50        self.language = None
51        self.acquisitionInformation = []
52        self.metadataStandardVersion = None
53        self.characterSet = None
54        self.referenceSystemInfo = []
55        self.dateStamp = None
56        self.hierarchyLevel = []
57        self._metadataConstraints_md_securityconstraints = []
58        self._metadataConstraints_md_legalconstraints = []
59        self.metadataStandardName = None
60        self.identificationInfo = []
61        self.dataQualityInfo = []
62        self.distributionInfo = None
63        self.metadataMaintenance = None
64        self._contentInfo_md_coveragedescription = []
65        self._contentInfo_md_featurecataloguedescription = []
66        self.hierarchyLevelName = []
67        self._featureAttribute_gf_spatialattributetype = []
68        self._featureAttribute_if_classificationattributetype = []
69        self._featureAttribute_gf_thematicattributetype = []
70        self._featureAttribute_gf_metadataattributetype = []
71        self._featureAttribute_gf_locationalattributetype = []
72        self._featureAttribute_gf_temporalattributetype = []
73        self.portrayalCatalogueInfo = []
74        self._series_ds_series = []
75        self._series_ds_initiative = []
76        self._series_ds_otheraggregate = []
77        self._spatialRepresentationInfo_md_gridspatialrepresentation = []
78        self._spatialRepresentationInfo_md_vectorspatialrepresentation = []
79        self.describes = []
80        self.parentIdentifier = None
81        self.contact = []
82        self.metadataExtensionInfo = []
83        self.featureType = []
84        super(MI_Metadata, self).__init__()
85
86    @property
87    def fileIdentifier(self):   
88        return self._md_metadata.fileIdentifier
89
90    @fileIdentifier.setter
91    def fileIdentifier(self, value):   
92            self._md_metadata.fileIdentifier = value
93
94    @property
95    def dataSet(self): 
96        return self._md_metadata.dataSet
97
98    @dataSet.setter
99    def dataSet(self, value):   
100            self._md_metadata.dataSet = value
101
102    @property
103    def propertyType(self):     
104        return self._md_metadata.propertyType
105
106    @propertyType.setter
107    def propertyType(self, value):     
108            self._md_metadata.propertyType = value
109
110    @property
111    def applicationSchemaInfo(self):   
112        return self._md_metadata.applicationSchemaInfo
113
114    @applicationSchemaInfo.setter
115    def applicationSchemaInfo(self, value):     
116            self._md_metadata.applicationSchemaInfo = value
117
118    @property
119    def language(self): 
120        return self._md_metadata.language
121
122    @language.setter
123    def language(self, value): 
124            self._md_metadata.language = value
125
126    @property
127    def metadataStandardVersion(self): 
128        return self._md_metadata.metadataStandardVersion
129
130    @metadataStandardVersion.setter
131    def metadataStandardVersion(self, value):   
132            self._md_metadata.metadataStandardVersion = value
133
134    @property
135    def characterSet(self):     
136        return self._md_metadata.characterSet
137
138    @characterSet.setter
139    def characterSet(self, value):     
140            self._md_metadata.characterSet = value
141
142    @property
143    def referenceSystemInfo(self):     
144        return self._md_metadata.referenceSystemInfo
145
146    @referenceSystemInfo.setter
147    def referenceSystemInfo(self, value):       
148            self._md_metadata.referenceSystemInfo = value
149
150    @property
151    def dateStamp(self):       
152        return self._md_metadata.dateStamp
153
154    @dateStamp.setter
155    def dateStamp(self, value): 
156            self._md_metadata.dateStamp = value
157
158    @property
159    def hierarchyLevel(self):   
160        return self._md_metadata.hierarchyLevel
161
162    @hierarchyLevel.setter
163    def hierarchyLevel(self, value):   
164            self._md_metadata.hierarchyLevel = value
165
166    @property
167    def metadataConstraints(self):     
168        return self._md_metadata.metadataConstraints
169
170    @metadataConstraints.setter
171    def metadataConstraints(self, value):       
172            self._md_metadata.metadataConstraints = value
173
174    @property
175    def metadataStandardName(self):     
176        return self._md_metadata.metadataStandardName
177
178    @metadataStandardName.setter
179    def metadataStandardName(self, value):     
180            self._md_metadata.metadataStandardName = value
181
182    @property
183    def identificationInfo(self):       
184        return self._md_metadata.identificationInfo
185
186    @identificationInfo.setter
187    def identificationInfo(self, value):       
188            self._md_metadata.identificationInfo = value
189
190    @property
191    def dataQualityInfo(self): 
192        return self._md_metadata.dataQualityInfo
193
194    @dataQualityInfo.setter
195    def dataQualityInfo(self, value):   
196            self._md_metadata.dataQualityInfo = value
197
198    @property
199    def distributionInfo(self): 
200        return self._md_metadata.distributionInfo
201
202    @distributionInfo.setter
203    def distributionInfo(self, value): 
204            self._md_metadata.distributionInfo = value
205
206    @property
207    def metadataMaintenance(self):     
208        return self._md_metadata.metadataMaintenance
209
210    @metadataMaintenance.setter
211    def metadataMaintenance(self, value):       
212            self._md_metadata.metadataMaintenance = value
213
214    @property
215    def contentInfo(self):     
216        return self._md_metadata.contentInfo
217
218    @contentInfo.setter
219    def contentInfo(self, value):       
220            self._md_metadata.contentInfo = value
221
222    @property
223    def hierarchyLevelName(self):       
224        return self._md_metadata.hierarchyLevelName
225
226    @hierarchyLevelName.setter
227    def hierarchyLevelName(self, value):       
228            self._md_metadata.hierarchyLevelName = value
229
230    @property
231    def featureAttribute(self): 
232        return self._md_metadata.featureAttribute
233
234    @featureAttribute.setter
235    def featureAttribute(self, value): 
236            self._md_metadata.featureAttribute = value
237
238    @property
239    def portrayalCatalogueInfo(self):   
240        return self._md_metadata.portrayalCatalogueInfo
241
242    @portrayalCatalogueInfo.setter
243    def portrayalCatalogueInfo(self, value):   
244            self._md_metadata.portrayalCatalogueInfo = value
245
246    @property
247    def series(self):   
248        return self._md_metadata.series
249
250    @series.setter
251    def series(self, value):   
252            self._md_metadata.series = value
253
254    @property
255    def spatialRepresentationInfo(self):       
256        return self._md_metadata.spatialRepresentationInfo
257
258    @spatialRepresentationInfo.setter
259    def spatialRepresentationInfo(self, value): 
260            self._md_metadata.spatialRepresentationInfo = value
261
262    @property
263    def describes(self):       
264        return self._md_metadata.describes
265
266    @describes.setter
267    def describes(self, value): 
268            self._md_metadata.describes = value
269
270    @property
271    def parentIdentifier(self): 
272        return self._md_metadata.parentIdentifier
273
274    @parentIdentifier.setter
275    def parentIdentifier(self, value): 
276            self._md_metadata.parentIdentifier = value
277
278    @property
279    def contact(self): 
280        return self._md_metadata.contact
281
282    @contact.setter
283    def contact(self, value):   
284            self._md_metadata.contact = value
285
286    @property
287    def metadataExtensionInfo(self):   
288        return self._md_metadata.metadataExtensionInfo
289
290    @metadataExtensionInfo.setter
291    def metadataExtensionInfo(self, value):     
292            self._md_metadata.metadataExtensionInfo = value
293
294    @property
295    def featureType(self):     
296        return self._md_metadata.featureType
297
298    @featureType.setter
299    def featureType(self, value):       
300            self._md_metadata.featureType = value
301
302    def __key(self):
303        return (self.fileIdentifier, self.dataSet, self.propertyType, self.applicationSchemaInfo, self.language, self.acquisitionInformation, self.metadataStandardVersion, self.characterSet, self.referenceSystemInfo, self.dateStamp, self.hierarchyLevel, self.metadataConstraints, self.metadataStandardName, self.identificationInfo, self.dataQualityInfo, self.distributionInfo, self.metadataMaintenance, self.contentInfo, self.hierarchyLevelName, self.featureAttribute, self.portrayalCatalogueInfo, self.series, self.spatialRepresentationInfo, self.describes, self.parentIdentifier, self.contact, self.metadataExtensionInfo, self.featureType)
304
305    def __eq__(self, y):
306        '''
307        Cannot compare classes which do not define a "__key" attribute
308        '''
309        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
310            return self.__key() == y.__key()
311        return id(self) == id(y)
312
313    def __hash__(self):
314        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.