/
eattribute_ext.go
40 lines (33 loc) · 1.14 KB
/
eattribute_ext.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// *****************************************************************************
// Copyright(c) 2021 MASA Group
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// *****************************************************************************
package ecore
// eAttributeExt is the extension of the model object 'EAttribute'
type eAttributeExt struct {
eAttributeImpl
}
func newEAttributeExt() *eAttributeExt {
eAttribute := new(eAttributeExt)
eAttribute.SetInterfaces(eAttribute)
eAttribute.Initialize()
return eAttribute
}
func (eAttribute *eAttributeExt) GetEAttributeType() EDataType {
return eAttribute.GetEType().(EDataType)
}
func (eAttribute *eAttributeExt) basicGetEAttributeType() EDataType {
return eAttribute.basicGetEType().(EDataType)
}
func (eAttribute *eAttributeExt) SetID(newIsID bool) {
eAttribute.eAttributeImpl.SetID(newIsID)
eClass := eAttribute.GetEContainingClass()
if eClass != nil {
classExt := eClass.(*eClassExt)
classExt.setModified(ECLASS__EATTRIBUTES)
}
}