Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to retrieve reference data by giving a class
How to retrieve reference data by giving a class [message #474875] Fri, 03 August 2007 00:33 Go to next message
JD is currently offline JD
Messages: 13
Registered: July 2009
Junior Member
Hi All:
In UML model, by giving user defined DataType Class, is there a way to
know where the datatype class was referenced?
For example:
I have a defined dataype class: TypeA, and it was used in following class
in the model:
ClassA.attribute1::TypeA
ClassB.attribute2::TypeA

Is there a simple approach that I can retrieve the list of
ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?

Currently, I'm using emf.query to perform the check, but performance is
poor...

Thanks in advance.

JD
Re: How to retrieve reference data by giving a class [message #474879 is a reply to message #474875] Fri, 03 August 2007 11:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
JD,

I think you can determine this efficiently from
CacheAdapter.INSTANCE.getInverseReferences but note that this will only
find references from models that are loaded into memory...


JD wrote:
> Hi All:
> In UML model, by giving user defined DataType Class, is there a way
> to know where the datatype class was referenced?
> For example: I have a defined dataype class: TypeA, and it was used in
> following class in the model:
> ClassA.attribute1::TypeA
> ClassB.attribute2::TypeA
>
> Is there a simple approach that I can retrieve the list of
> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>
> Currently, I'm using emf.query to perform the check, but performance
> is poor...
>
> Thanks in advance.
>
> JD
>
Re: How to retrieve reference data by giving a class [message #474985 is a reply to message #474879] Mon, 06 August 2007 19:24 Go to previous message
JD is currently offline JD
Messages: 13
Registered: July 2009
Junior Member
Thanks Ed. I'm keep leaning everyday!


Ed Merks wrote:

> JD,

> I think you can determine this efficiently from
> CacheAdapter.INSTANCE.getInverseReferences but note that this will only
> find references from models that are loaded into memory...


> JD wrote:
>> Hi All:
>> In UML model, by giving user defined DataType Class, is there a way
>> to know where the datatype class was referenced?
>> For example: I have a defined dataype class: TypeA, and it was used in
>> following class in the model:
>> ClassA.attribute1::TypeA
>> ClassB.attribute2::TypeA
>>
>> Is there a simple approach that I can retrieve the list of
>> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>>
>> Currently, I'm using emf.query to perform the check, but performance
>> is poor...
>>
>> Thanks in advance.
>>
>> JD
>>
Re: How to retrieve reference data by giving a class [message #624255 is a reply to message #474875] Fri, 03 August 2007 11:47 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
JD,

I think you can determine this efficiently from
CacheAdapter.INSTANCE.getInverseReferences but note that this will only
find references from models that are loaded into memory...


JD wrote:
> Hi All:
> In UML model, by giving user defined DataType Class, is there a way
> to know where the datatype class was referenced?
> For example: I have a defined dataype class: TypeA, and it was used in
> following class in the model:
> ClassA.attribute1::TypeA
> ClassB.attribute2::TypeA
>
> Is there a simple approach that I can retrieve the list of
> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>
> Currently, I'm using emf.query to perform the check, but performance
> is poor...
>
> Thanks in advance.
>
> JD
>
Re: How to retrieve reference data by giving a class [message #624260 is a reply to message #474879] Mon, 06 August 2007 19:24 Go to previous message
JD is currently offline JD
Messages: 13
Registered: July 2009
Junior Member
Thanks Ed. I'm keep leaning everyday!


Ed Merks wrote:

> JD,

> I think you can determine this efficiently from
> CacheAdapter.INSTANCE.getInverseReferences but note that this will only
> find references from models that are loaded into memory...


> JD wrote:
>> Hi All:
>> In UML model, by giving user defined DataType Class, is there a way
>> to know where the datatype class was referenced?
>> For example: I have a defined dataype class: TypeA, and it was used in
>> following class in the model:
>> ClassA.attribute1::TypeA
>> ClassB.attribute2::TypeA
>>
>> Is there a simple approach that I can retrieve the list of
>> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>>
>> Currently, I'm using emf.query to perform the check, but performance
>> is poor...
>>
>> Thanks in advance.
>>
>> JD
>>
Previous Topic:What the impact of changing applied UML profile
Next Topic:CacheAdapter Memory Leak
Goto Forum:
  


Current Time: Sat Oct 25 20:44:06 GMT 2014

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

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