HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01
CIM Naming Guidelines
Properties and Methods
Appendix A 119
Properties and Methods
Properties and methods are defined for individual classes and inherited
by their subclasses. Property and Method names should be constructed of
one or more words, each of which begins with a capital letter. Example
property and method names from the DMTF schema include:
• Name
• DeviceID
• ErrorDescription
• UpperThresholdNonCritical
• Range1InputVoltageLow
• StartService()
• SetPowerState()
Note that while property or method names may contain numbers, they
do not contain underscores or dashes so as not to be confused with class
names.
Properties/Methods in Superclasses
Since all properties and methods of superclasses are inherited by the
subclass, it is unnecessary to redefine them in the subclass. Thus, there
is no opportunity to rename a property or method from a superclass.
Properties and methods can be overridden in a subclass (using the
Override qualifier), but the override cannot change the name. Overriding
can be used to provide a more detailed Description or to add other
qualifiers (for example Write) to indicate that additional capabilities
exist.
DMTF-defined classes should not be modified to redefine properties or
methods. Such a change will adversely affect providers that have been
constructed to adhere to the DMTF standard CIM schema.
If a necessary property or method is not in the identified superclass, the
following two sections describe recommended approaches.