Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL:How to match EAttribute to Ereference
ATL:How to match EAttribute to Ereference [message #107699] Thu, 02 July 2009 10:02
venkatesh  is currently offline venkatesh Friend
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
Previous Topic:QVT: command line execution
Next Topic:[ATL] Calling a transformation from Java
Goto Forum:
  


Current Time: Sun Sep 24 22:03:06 GMT 2023

Powered by FUDForum. Page generated in 0.02111 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top