What is the best way to model a name/value pair in CIM?

Klaus Kaempf kkaempf at suse.de
Mon Feb 25 18:14:57 UTC 2013


Hi John,

* John Dennis <jdennis at redhat.com> [Feb 25. 2013 18:52]:
> In the provider I'm writing lists of key/value pairs are needed in a
> few different contexts (as a parameter to a method, as an instance
> property, etc.).
> 
> In CIM what is the best way to to model a name/value pair? In CIM I
> dont' think there is any mechanism by which the value can be of an
> arbitrary type (right?). Therefore lets assume both the name and
> value are strings.

can you be more specific about what you're trying to accomplish ?
Do you have an example ?

The approach CIM takes is to model everything as a CIM class. Either
as an instance class or as an association class.

Maybe you need to get back to the drawing board and spent some time on
more modeling, so that you can replace the need for key/value lists
with actual classes.


Regards,

Klaus
-- 
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany


More information about the openlmi-devel mailing list