A Practical Approach to WBEM[s]CIM Management
Boolean qualifiers may have defaults of true or false. If you use a Boolean qualifier without specifying a value then it does not adopt the value of the default ”it becomes "true"! Make sure that this is what you mean or, better still, always specify a value.
For example, the Abstract and Read qualifiers are defined in the standard core model as follows :
Qualifier Abstract : boolean = false, Scope(class, association, indication), Flavor(Restricted); Qualifier Read : boolean = true, Scope(property);
If you define a class as follows:
[Abstract, Description("My class")] class MyClass { [Read] uint8 myValue; };
then MyClass is Abstract as if you had specified Abstract (true) (even though the default for Abstract is false) and myValue is readable.
Категории