Method parameters, class names & object paths : Case sensitive/insensitive ?

17 views
Skip to first unread message

Krishanu Dhar

unread,
Feb 21, 2010, 1:46:27 PM2/21/10
to smi-s-devel...@googlegroups.com
Hi,

I have a very basic question with respect to Method names, their parameters, class names and Object paths.

Are the above mentioned items deemed to be case insensitive per the standards? If not what does the standard specifically say? I am a bit confused as to what should be the correct expectation.

Thanks,
--
Krishanu

Paul von Behren

unread,
Feb 22, 2010, 12:35:34 PM2/22/10
to smi-s-devel...@googlegroups.com
This is covered in DMTF's CIM Infrastructure Spec:
http://www.dmtf.org/standards/published_documents/DSP0004_2.5.0.pdf

Section 7.4 Naming of Schema Elements

"All names are case-insensitive, so two schema item names are identical
if they differ only in case. This is mandated so that scripting
technologies that are case-insensitive can leverage CIM technology.
However, string values assigned to properties and qualifiers are not
covered by this rule and must be treated as case-sensitive."

To answer your questions: method, parameter, class, and property names
are case-insensitive, but the values of these elements should be treated
as case-sensitive. Note that object paths contain a mix of names and
values (e.g. key_property_name="value") - the value is considered case
sensitive.

Paul

> --
> You received this message because you are subscribed to the Google
> Groups "SMI-S Developers Group" group.
> To post to this group, send email to
> smi-s-devel...@googlegroups.com.
> To unsubscribe from this group, send email to
> smi-s-developers-...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/smi-s-developers-group?hl=en.

Krishanu Dhar

unread,
Feb 23, 2010, 3:27:50 AM2/23/10
to smi-s-devel...@googlegroups.com
Thanks for your response Paul. So, is this a mandate that all the schema elements be case insensitive?

The same section of the DMTF spec states the following:

"CIM is a conceptual model that is not bound to a particular implementation. Therefore, it can be used to exchange management information in a variety of ways, examples of which are described in the Introduction. Some implementations may use case-sensitive technologies, while others may use case-insensitive technologies."

Therefore, will it matter if the implementation makes use of a case sensitive approach?

Thanks,
krish
--
Krishanu
Reply all
Reply to author
Forward
0 new messages