Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » how to get source parameter type( I need to get the source parameter type is there any method that can I use to get that ??)
how to get source parameter type [message #1734926] Mon, 13 June 2016 19:31 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Hello,
I am trying to create trace links model but I need to get the source parameter type is there any method that can I use to get that , for example like the method getSource() ?? is there getSourceType() that can I use??
var trace : new Trace!Trace;
for (t in transTrace.transformations) {
//for (r in transformRule)
var link : new Trace!TraceLink;
//link.sources.add(t.source);
link.description = "Transformed by " + t.getRule().name;
link.sourceName= ""+t.getSource().name;
//link.sources= r.toString(t.getSource().name
link.targetName = ""+t.getTargets().first().name;

trace.links.add(link);


}

Thanks.

[Updated on: Mon, 13 June 2016 19:34]

Report message to a moderator

Re: how to get source parameter type [message #1734932 is a reply to message #1734926] Mon, 13 June 2016 20:34 Go to previous message
Eclipse UserFriend
Hello Taghreed,

In the operations of Any:
type(): Type . Returns the type of the object.
isTypeOf( type: Type) : Returns true if the object is of the given type.
isKindOf( type: Type) : Return true if the object is of the given type or of one of its sub types.

I hope it helps.
Previous Topic:Generation EMF code from splited ecore model
Next Topic:NullPointerException during emfcode generation phase
Goto Forum:
  


Current Time: Tue Apr 16 04:36:23 GMT 2024

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

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

Back to the top