source: mauRepo/MolesManager/trunk/src/ea_model/iso_19109_2005_application_schema/general_feature_model/gf_temporalattributetype.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19109_2005_application_schema/general_feature_model/gf_temporalattributetype.py@8091
Revision 8091, 4.8 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_19109_2005_application_schema.general_feature_model.gf_attributetype import  GF_AttributeType
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:11
26
27@author: mnagni
28'''
29
30class GF_TemporalAttributeType(GF_AttributeType):
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._gf_attributetype = GF_AttributeType()     
43
44        self.propertyTypeMetadata = []
45        self.valueDomain = None
46        self._characterizeBy_gf_spatialattributetype = []
47        self._characterizeBy_if_classificationattributetype = []
48        self._characterizeBy_gf_thematicattributetype = []
49        self._characterizeBy_gf_metadataattributetype = []
50        self._characterizeBy_gf_locationalattributetype = []
51        self._characterizeBy_gf_temporalattributetype = []
52        self.featureAttributeMetadata = []
53        self.constrainedBy = []
54        self.memberName = None
55        self.valueType = None
56        self.definition = None
57        self.theGF_FeatureType = None
58        self._characterize_gf_spatialattributetype = None
59        self._characterize_if_classificationattributetype = None
60        self._characterize_gf_thematicattributetype = None
61        self._characterize_gf_metadataattributetype = None
62        self._characterize_gf_locationalattributetype = None
63        self._characterize_gf_temporalattributetype = None
64        self.cardinality = None
65        super(GF_TemporalAttributeType, self).__init__()
66
67    @property
68    def propertyTypeMetadata(self):     
69        return self._gf_attributetype.propertyTypeMetadata
70
71    @propertyTypeMetadata.setter
72    def propertyTypeMetadata(self, value):     
73            self._gf_attributetype.propertyTypeMetadata = value
74
75    @property
76    def valueDomain(self):     
77        return self._gf_attributetype.valueDomain
78
79    @valueDomain.setter
80    def valueDomain(self, value):       
81            self._gf_attributetype.valueDomain = value
82
83    @property
84    def characterizeBy(self):   
85        return self._gf_attributetype.characterizeBy
86
87    @characterizeBy.setter
88    def characterizeBy(self, value):   
89            self._gf_attributetype.characterizeBy = value
90
91    @property
92    def featureAttributeMetadata(self): 
93        return self._gf_attributetype.featureAttributeMetadata
94
95    @featureAttributeMetadata.setter
96    def featureAttributeMetadata(self, value): 
97            self._gf_attributetype.featureAttributeMetadata = value
98
99    @property
100    def constrainedBy(self):   
101        return self._gf_attributetype.constrainedBy
102
103    @constrainedBy.setter
104    def constrainedBy(self, value):     
105            self._gf_attributetype.constrainedBy = value
106
107    @property
108    def memberName(self):       
109        return self._gf_attributetype.memberName
110
111    @memberName.setter
112    def memberName(self, value):       
113            self._gf_attributetype.memberName = value
114
115    @property
116    def valueType(self):       
117        return self._gf_attributetype.valueType
118
119    @valueType.setter
120    def valueType(self, value): 
121            self._gf_attributetype.valueType = value
122
123    @property
124    def definition(self):       
125        return self._gf_attributetype.definition
126
127    @definition.setter
128    def definition(self, value):       
129            self._gf_attributetype.definition = value
130
131    @property
132    def theGF_FeatureType(self):       
133        return self._gf_attributetype.theGF_FeatureType
134
135    @theGF_FeatureType.setter
136    def theGF_FeatureType(self, value): 
137            self._gf_attributetype.theGF_FeatureType = value
138
139    @property
140    def characterize(self):     
141        return self._gf_attributetype.characterize
142
143    @characterize.setter
144    def characterize(self, value):     
145            self._gf_attributetype.characterize = value
146
147    @property
148    def cardinality(self):     
149        return self._gf_attributetype.cardinality
150
151    @cardinality.setter
152    def cardinality(self, value):       
153            self._gf_attributetype.cardinality = value
154
155    def __key(self):
156        return (self.propertyTypeMetadata, self.valueDomain, self.characterizeBy, self.featureAttributeMetadata, self.constrainedBy, self.memberName, self.valueType, self.definition, self.theGF_FeatureType, self.characterize, self.cardinality)
157
158    def __eq__(self, y):
159        '''
160        Cannot compare classes which do not define a "__key" attribute
161        '''
162        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
163            return self.__key() == y.__key()
164        return id(self) == id(y)
165
166    def __hash__(self):
167        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.