ATL:How to match EAttribute to Ereference [message #107699] |
Thu, 02 July 2009 10:02 |
venkatesh  Messages: 41 Registered: July 2009 |
Member |
|
|
Hi ,
I have LDM.ecore (Source metamodel) & PDM.ecore(Target metamodel)
My LDM.ecore have an LDMAtrribute class which has type(EAttribute)
The flow of this class is
LDMAttribute(Eclass)
| |
| |
| |_(EAttribute)type:AttributeType
|
|
AttributeType(Enum)
|
|_____numericString=0
|
|_____string=1
|
|_____integer=2
|
|_____byte=3
|
|_____boolean=4
PDM.ecore which has PDMAttribute which has type(Ereference)
The flow of this class
PDMAttribute(Eclass)
|
| |_____(Ereference)type:LdapAttributeType
|
|
|
|
|__LdapAttributeType(Eclass)
| |
| |_____singleValue:Eboolean
| |
| |_____userAttr:Eboolean
| |
| |_____ldapSyntaxType:PDMLDAPSytaxTypeBase
| |
| |_____ID:Estring
| |
| |_____classLib:Estring
| |
| |_____location:Estring
|
|
|
|__PDMLdapSyntaxTypeBase(EClass)
| |
| |_____syntaxLength:Eint
| |
| |_____generalType:GeneralType
| |
| |_____asn1Syntax:EPDMASN1Syntax
|
|
|
|__GeneralType(ENUM)
| |
| |_____TString:0
| |
| |_____TInteger=1
| |
| |_____TBoolean=3
|
|
|__EPDMAsn1Syntax(ENUM)
|
|_____bool=0
|
|_____integer=2
|
|_____real=3
now i want to match LDMAttribute to PDMAttribute ,but in LDMAttrinute
there is a type attribute which i want to match with PDMAttribute type
reference.
can you tell me how to create rule for this.
Thanks in Advance
venky
|
|
|
Powered by
FUDForum. Page generated in 0.02111 seconds