Boolean Qualifiers

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.

A Practical Approach to WBEM[s]CIM Management
A Practical Approach to WBEM[s]CIM Management
ISBN: 849323061
Year: 2006
Pages: 152 © 2008-2017.
If you may any questions please contact us: