Skip to main content



      Home
Home » Modeling » UML2 » Tagged value support
Tagged value support [message #476233] Fri, 28 September 2007 03:54 Go to next message
Eclipse UserFriend
Originally posted by: scott.came.search.org

Can someone help me understand if there is an equivalent in UML2 to the
"tagged value" structures from earlier UML/XMI versions, and the UML2
plugin's support for the equivalent, if any?

I have explored every angle I can think of, and cannot see how to
specify the old name-value pairs for elements in UML models (classes,
attributes, associations, etc.)...either in the UML2 tree-style editor
or the UML2Tools graphical editor.

Thanks for any insights you can provide.
--Scott
Re: Tagged value support [message #476237 is a reply to message #476233] Fri, 28 September 2007 09:46 Go to previous messageGo to next message
Eclipse UserFriend
I'm not exactly sure what you mean by "... old name-value pairs for
elements in UML models ...". Can you post a snippet from a model showing
this?
Are you referring to values of stereotypes and profiles perhaps?

Cheers,
- James.



"Scott Came" <scott.came@search.org> wrote in message
news:fdibta$sre$1@build.eclipse.org...
> Can someone help me understand if there is an equivalent in UML2 to the
> "tagged value" structures from earlier UML/XMI versions, and the UML2
> plugin's support for the equivalent, if any?
>
> I have explored every angle I can think of, and cannot see how to
> specify the old name-value pairs for elements in UML models (classes,
> attributes, associations, etc.)...either in the UML2 tree-style editor
> or the UML2Tools graphical editor.
>
> Thanks for any insights you can provide.
> --Scott
Re: Tagged value support [message #476238 is a reply to message #476237] Fri, 28 September 2007 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: scott.came.search.org

Thanks, James.

In Argo UML, for example, I am able to create name-value pairs to
associate any arbitrary metadata with elements of a model. These are
called tagged values. For instance, I can add a tagged value to a class
to track its approval status. The tag would be "status" and the value
would be "approved" or "draft".

As far as I know I'm referring to neither stereotypes or profiles, but
would be happy to be proven wrong!

It seems like UML would have retained an easy way to attach arbitrary
metadata to model elements.

Here is a snippet of XMI 1.2 / UML 1.4 (created by Argo 0.24):

<UML:ModelElement.taggedValue>
<UML:TaggedValue xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000837'
isSpecification = 'false'>
<UML:TaggedValue.dataValue>Approved</UML:TaggedValue.dataValue >
<UML:TaggedValue.type>
<UML:TagDefinition xmi.idref =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000838'/>
</UML:TaggedValue.type>
</UML:TaggedValue>
</UML:ModelElement.taggedValue>

.... (later in the XMI document)

<UML:TagDefinition xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000838'
name = 'status' isSpecification = 'false' tagType = 'String'>
<UML:TagDefinition.multiplicity>
<UML:Multiplicity xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:000000000000083A'>
<UML:Multiplicity.range>
<UML:MultiplicityRange xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000839'
lower = '0' upper = '1'/>
</UML:Multiplicity.range>
</UML:Multiplicity>
</UML:TagDefinition.multiplicity>
</UML:TagDefinition>

Just to be clear, here is the front-matter of the XMI document:

<XMI xmi.version = '1.2' xmlns:UML = 'org.omg.xmi.namespace.UML'
timestamp = 'Sun Sep 16 21:44:47 PDT 2007'>
<XMI.header>
<XMI.documentation>
<XMI.exporter>ArgoUML (using Netbeans XMI Writer version
1.0)</XMI.exporter>
<XMI.exporterVersion>0.24(5) revised on $Date: 2006-11-06
19:55:22 +0100 (Mon, 06 Nov 2006) $ </XMI.exporterVersion>
</XMI.documentation>
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/></XMI.header>


Thanks for your help.
--Scott

James Bruck wrote:
> I'm not exactly sure what you mean by "... old name-value pairs for
> elements in UML models ...". Can you post a snippet from a model showing
> this?
> Are you referring to values of stereotypes and profiles perhaps?
>
> Cheers,
> - James.
>
>
>
> "Scott Came" <scott.came@search.org> wrote in message
> news:fdibta$sre$1@build.eclipse.org...
>> Can someone help me understand if there is an equivalent in UML2 to the
>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>> plugin's support for the equivalent, if any?
>>
>> I have explored every angle I can think of, and cannot see how to
>> specify the old name-value pairs for elements in UML models (classes,
>> attributes, associations, etc.)...either in the UML2 tree-style editor
>> or the UML2Tools graphical editor.
>>
>> Thanks for any insights you can provide.
>> --Scott
>
>
Re: Tagged value support [message #476239 is a reply to message #476237] Fri, 28 September 2007 11:07 Go to previous messageGo to next message
Eclipse UserFriend
> Are you referring to values of stereotypes and profiles perhaps?

I am pretty sure he is, James.

Scott, the UML spec changed in version 2.0 in a way that standalone
tagged values are not supported any longer. With UML 2.*, you have to
define tagged values as stereotype properties, and then when applying
the stereotype to an element you can specify the values of those
properties. Since Eclipse.org's UML2 is compatible with UML 2.1.1, you
don't get standalone tagged values with this API.

This might interest you:

http://www.omg.org/issues/issue6453.txt

Cheers,

Rafael

James Bruck wrote:
> I'm not exactly sure what you mean by "... old name-value pairs for
> elements in UML models ...". Can you post a snippet from a model showing
> this?
> Are you referring to values of stereotypes and profiles perhaps?
>
> Cheers,
> - James.
>
>
>
> "Scott Came" <scott.came@search.org> wrote in message
> news:fdibta$sre$1@build.eclipse.org...
>> Can someone help me understand if there is an equivalent in UML2 to the
>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>> plugin's support for the equivalent, if any?
>>
>> I have explored every angle I can think of, and cannot see how to
>> specify the old name-value pairs for elements in UML models (classes,
>> attributes, associations, etc.)...either in the UML2 tree-style editor
>> or the UML2Tools graphical editor.
>>
>> Thanks for any insights you can provide.
>> --Scott
>
>
Re: Tagged value support [message #476240 is a reply to message #476239] Fri, 28 September 2007 11:24 Go to previous message
Eclipse UserFriend
Originally posted by: scott.came.search.org

Yes, Rafael, that seems to cover it!

Thank you very much for your response. I will look into this.

--Scott

Rafael Chaves wrote:
> > Are you referring to values of stereotypes and profiles perhaps?
>
> I am pretty sure he is, James.
>
> Scott, the UML spec changed in version 2.0 in a way that standalone
> tagged values are not supported any longer. With UML 2.*, you have to
> define tagged values as stereotype properties, and then when applying
> the stereotype to an element you can specify the values of those
> properties. Since Eclipse.org's UML2 is compatible with UML 2.1.1, you
> don't get standalone tagged values with this API.
>
> This might interest you:
>
> http://www.omg.org/issues/issue6453.txt
>
> Cheers,
>
> Rafael
>
> James Bruck wrote:
>> I'm not exactly sure what you mean by "... old name-value pairs for
>> elements in UML models ...". Can you post a snippet from a model showing
>> this?
>> Are you referring to values of stereotypes and profiles perhaps?
>>
>> Cheers,
>> - James.
>>
>>
>>
>> "Scott Came" <scott.came@search.org> wrote in message
>> news:fdibta$sre$1@build.eclipse.org...
>>> Can someone help me understand if there is an equivalent in UML2 to the
>>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>>> plugin's support for the equivalent, if any?
>>>
>>> I have explored every angle I can think of, and cannot see how to
>>> specify the old name-value pairs for elements in UML models (classes,
>>> attributes, associations, etc.)...either in the UML2 tree-style editor
>>> or the UML2Tools graphical editor.
>>>
>>> Thanks for any insights you can provide.
>>> --Scott
>>
>>
Re: Tagged value support [message #625044 is a reply to message #476233] Fri, 28 September 2007 09:46 Go to previous message
Eclipse UserFriend
I'm not exactly sure what you mean by "... old name-value pairs for
elements in UML models ...". Can you post a snippet from a model showing
this?
Are you referring to values of stereotypes and profiles perhaps?

Cheers,
- James.



"Scott Came" <scott.came@search.org> wrote in message
news:fdibta$sre$1@build.eclipse.org...
> Can someone help me understand if there is an equivalent in UML2 to the
> "tagged value" structures from earlier UML/XMI versions, and the UML2
> plugin's support for the equivalent, if any?
>
> I have explored every angle I can think of, and cannot see how to
> specify the old name-value pairs for elements in UML models (classes,
> attributes, associations, etc.)...either in the UML2 tree-style editor
> or the UML2Tools graphical editor.
>
> Thanks for any insights you can provide.
> --Scott
Re: Tagged value support [message #625045 is a reply to message #476237] Fri, 28 September 2007 11:04 Go to previous message
Eclipse UserFriend
Originally posted by: scott.came.search.org

Thanks, James.

In Argo UML, for example, I am able to create name-value pairs to
associate any arbitrary metadata with elements of a model. These are
called tagged values. For instance, I can add a tagged value to a class
to track its approval status. The tag would be "status" and the value
would be "approved" or "draft".

As far as I know I'm referring to neither stereotypes or profiles, but
would be happy to be proven wrong!

It seems like UML would have retained an easy way to attach arbitrary
metadata to model elements.

Here is a snippet of XMI 1.2 / UML 1.4 (created by Argo 0.24):

<UML:ModelElement.taggedValue>
<UML:TaggedValue xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000837'
isSpecification = 'false'>
<UML:TaggedValue.dataValue>Approved</UML:TaggedValue.dataValue >
<UML:TaggedValue.type>
<UML:TagDefinition xmi.idref =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000838'/>
</UML:TaggedValue.type>
</UML:TaggedValue>
</UML:ModelElement.taggedValue>

.... (later in the XMI document)

<UML:TagDefinition xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000838'
name = 'status' isSpecification = 'false' tagType = 'String'>
<UML:TagDefinition.multiplicity>
<UML:Multiplicity xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:000000000000083A'>
<UML:Multiplicity.range>
<UML:MultiplicityRange xmi.id =
'-64--88-1-2--6836185a:1150f56b8a1:-8000:0000000000000839'
lower = '0' upper = '1'/>
</UML:Multiplicity.range>
</UML:Multiplicity>
</UML:TagDefinition.multiplicity>
</UML:TagDefinition>

Just to be clear, here is the front-matter of the XMI document:

<XMI xmi.version = '1.2' xmlns:UML = 'org.omg.xmi.namespace.UML'
timestamp = 'Sun Sep 16 21:44:47 PDT 2007'>
<XMI.header>
<XMI.documentation>
<XMI.exporter>ArgoUML (using Netbeans XMI Writer version
1.0)</XMI.exporter>
<XMI.exporterVersion>0.24(5) revised on $Date: 2006-11-06
19:55:22 +0100 (Mon, 06 Nov 2006) $ </XMI.exporterVersion>
</XMI.documentation>
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/></XMI.header>


Thanks for your help.
--Scott

James Bruck wrote:
> I'm not exactly sure what you mean by "... old name-value pairs for
> elements in UML models ...". Can you post a snippet from a model showing
> this?
> Are you referring to values of stereotypes and profiles perhaps?
>
> Cheers,
> - James.
>
>
>
> "Scott Came" <scott.came@search.org> wrote in message
> news:fdibta$sre$1@build.eclipse.org...
>> Can someone help me understand if there is an equivalent in UML2 to the
>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>> plugin's support for the equivalent, if any?
>>
>> I have explored every angle I can think of, and cannot see how to
>> specify the old name-value pairs for elements in UML models (classes,
>> attributes, associations, etc.)...either in the UML2 tree-style editor
>> or the UML2Tools graphical editor.
>>
>> Thanks for any insights you can provide.
>> --Scott
>
>
Re: Tagged value support [message #625046 is a reply to message #476237] Fri, 28 September 2007 11:07 Go to previous message
Eclipse UserFriend
> Are you referring to values of stereotypes and profiles perhaps?

I am pretty sure he is, James.

Scott, the UML spec changed in version 2.0 in a way that standalone
tagged values are not supported any longer. With UML 2.*, you have to
define tagged values as stereotype properties, and then when applying
the stereotype to an element you can specify the values of those
properties. Since Eclipse.org's UML2 is compatible with UML 2.1.1, you
don't get standalone tagged values with this API.

This might interest you:

http://www.omg.org/issues/issue6453.txt

Cheers,

Rafael

James Bruck wrote:
> I'm not exactly sure what you mean by "... old name-value pairs for
> elements in UML models ...". Can you post a snippet from a model showing
> this?
> Are you referring to values of stereotypes and profiles perhaps?
>
> Cheers,
> - James.
>
>
>
> "Scott Came" <scott.came@search.org> wrote in message
> news:fdibta$sre$1@build.eclipse.org...
>> Can someone help me understand if there is an equivalent in UML2 to the
>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>> plugin's support for the equivalent, if any?
>>
>> I have explored every angle I can think of, and cannot see how to
>> specify the old name-value pairs for elements in UML models (classes,
>> attributes, associations, etc.)...either in the UML2 tree-style editor
>> or the UML2Tools graphical editor.
>>
>> Thanks for any insights you can provide.
>> --Scott
>
>
Re: Tagged value support [message #625049 is a reply to message #476239] Fri, 28 September 2007 11:24 Go to previous message
Eclipse UserFriend
Originally posted by: scott.came.search.org

Yes, Rafael, that seems to cover it!

Thank you very much for your response. I will look into this.

--Scott

Rafael Chaves wrote:
> > Are you referring to values of stereotypes and profiles perhaps?
>
> I am pretty sure he is, James.
>
> Scott, the UML spec changed in version 2.0 in a way that standalone
> tagged values are not supported any longer. With UML 2.*, you have to
> define tagged values as stereotype properties, and then when applying
> the stereotype to an element you can specify the values of those
> properties. Since Eclipse.org's UML2 is compatible with UML 2.1.1, you
> don't get standalone tagged values with this API.
>
> This might interest you:
>
> http://www.omg.org/issues/issue6453.txt
>
> Cheers,
>
> Rafael
>
> James Bruck wrote:
>> I'm not exactly sure what you mean by "... old name-value pairs for
>> elements in UML models ...". Can you post a snippet from a model showing
>> this?
>> Are you referring to values of stereotypes and profiles perhaps?
>>
>> Cheers,
>> - James.
>>
>>
>>
>> "Scott Came" <scott.came@search.org> wrote in message
>> news:fdibta$sre$1@build.eclipse.org...
>>> Can someone help me understand if there is an equivalent in UML2 to the
>>> "tagged value" structures from earlier UML/XMI versions, and the UML2
>>> plugin's support for the equivalent, if any?
>>>
>>> I have explored every angle I can think of, and cannot see how to
>>> specify the old name-value pairs for elements in UML models (classes,
>>> attributes, associations, etc.)...either in the UML2 tree-style editor
>>> or the UML2Tools graphical editor.
>>>
>>> Thanks for any insights you can provide.
>>> --Scott
>>
>>
Previous Topic:Code compatibility
Next Topic:constraint ocl
Goto Forum:
  


Current Time: Sun Aug 31 08:33:24 EDT 2025

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

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

Back to the top