Title: Nachricht
Hi, J�rg,
 
see the UML metamodel (http://www.andromda.org/tiki/tiki-download_file.php?fileId=1). What you are looking for is called the "initial value" of an "Attribute". Start looking at the JMI interface class Attribute, followed by the class PAttribute in AndroMDA's core. Somewhere on that path, you should find what you want.
 
Cheers...
Matthias
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J�rg-A. St�hr
Sent: Thursday, December 25, 2003 11:37 PM
To: [EMAIL PROTECTED]
Subject: [normal] [Andromda-user] Assigning a value

Hi,
 
what is the best way to write a template so it is possible to assign a value like                      
 
  final static java.lang.String NEW = "new";
 
Hint: The part in the XMI-File looks like
 
  <UML:Attribute xmi.id = 'lsm:d0d12e:f9a768be69:-76fe' name = 'NEW' visibility = 'private'
      isSpecification = 'false' ownerScope = 'instance'>
      <UML:Attribute.initialValue>
          <UML:_expression_ xmi.id = 'lsm:d0d12e:f9a768be69:-76fd' language = 'java'
              body = '&quot;new&quot;'/>
      </UML:Attribute.initialValue>
      <UML:StructuralFeature.type>
          <UML:Class xmi.idref = 'lsm:13fba1:f9942f0829:-7fec'/>
      </UML:StructuralFeature.type>
   </UML:Attribute>
 
Thank you for your help!
 
Joerg

Reply via email to