Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Creating an instance of AttributeImpl

Hi Christian,

 

Thank you for the tip, I will definitely do so.

 

Cheers,

Vlad

 

From: henshin-dev-bounces@xxxxxxxxxxx [mailto:henshin-dev-bounces@xxxxxxxxxxx] On Behalf Of Christian Krause
Sent: Tuesday, October 21, 2014 2:07 PM
To: Henshin developers mailing list
Subject: Re: [henshin-dev] Creating an instance of AttributeImpl

 

Hi Vlad,

 

You should use HenshinFactory.eINSTANCE.createAttribute() -- and similarly for all other model elements. 

 

Cheers, 

Christian

 

 

Sent from my mobile

-------- Original message --------
From: Vlad Acretoaie
Date:21/10/2014 13:58 (GMT+01:00)
To: henshin-dev@xxxxxxxxxxx
Subject: [henshin-dev] Creating an instance of AttributeImpl

Hi,

 

I am trying to create a Henshin Graph programmatically in a Java program. However, I have noticed that the visibility of the constructor of the class AttributeImpl is set to “protected” (unlike the constructors for NodeImpl and EdgeImpl, for instance, which are public).

 

I was wondering why this is the case. Also, how could I create an instance of AttributeImpl in this situation? Is there some other preferred mechanism for doing this?

 

Cheers,

Vlad

 

Vlad Acretoaie

PhD student

DTU Compute

 

Technical University of Denmark

Department of Applied Mathematics and Computer Science

Matematiktorvet

Building 303B, Room 055

DK - 2800 Kgs. Lyngby

Denmark

Direct +45 45253645

rvac@xxxxxx

www.compute.dtu.dk/~rvac

 

 

 


Back to the top