You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by "Farr, Aaron" <Aa...@am.sony.com> on 2004/03/18 21:23:06 UTC
[merlin] Component Model Identifier
Quick merlin/composition question:
I have a ComponentModel. I want to keep some sort of unique identifier to
this model as the key to a map. Rather than use the model object itself as
a key, is there a particular property which will guarantee me uniqueness
within a deployment context?
Perhaps "model.getQualifiedName()" ?
J. Aaron Farr
SONY ELECTRONICS
DDP-CIM
(724) 696-7653
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [merlin] Component Model Identifier
Posted by Stephen McConnell <mc...@apache.org>.
Farr, Aaron wrote:
> Quick merlin/composition question:
>
> I have a ComponentModel. I want to keep some sort of unique identifier to
> this model as the key to a map. Rather than use the model object itself as
> a key, is there a particular property which will guarantee me uniqueness
> within a deployment context?
>
> Perhaps "model.getQualifiedName()" ?
Yes.
The value returned from "model.getQualifiedName()" is equivalent to the
context entries "urn:avalon:partition" / "urn:avalon:name". I.e. its
the full path address to the particular deployment model. The qualified
name can be used in the containment model getModel( path ) operation to
get back a uniquely identifiable model.
Stephen.
>
>
> J. Aaron Farr
> SONY ELECTRONICS
> DDP-CIM
> (724) 696-7653
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
> For additional commands, e-mail: dev-help@avalon.apache.org
>
>
--
|------------------------------------------------|
| Magic by Merlin |
| Production by Avalon |
| |
| http://avalon.apache.org/merlin |
| http://dpml.net/merlin/distributions/latest |
|------------------------------------------------|
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org