Class CIM::QualifierFlavors
In: lib/cim/qualifier_flavors.rb
Parent: ::Array

Qualifier flavors are a fixed set. QualifierFlavors tracks which flavors are enabled for a specific QualifierDeclaration.

Allowed flavors are

amended:[wmi] Marks a qualifier value for localization (default: false)
enableoverride:The qualifier can be overriden (in a subclass) (default: true)
disableoverride:The qualifier can not be overriden (default: false)
restricted:The qualifier only applies to the class in which it is declared (default: false)
toinstance:[wmi]
tosubclass:The qualifier is inherited by any subclass (default: true)
translatable:Marks a qualifier value for localization (default: false)

Methods

<<   include?   includes?   new   to_s  

Constants

FLAVORS = [:amended, :enableoverride, :disableoverride, :restricted, :toinstance, :tosubclass, :translatable]

Public Class methods

Create QualifierFlavors with an initial flavor. More flavors can be added through the << method.

The flavor can be named as a string or a symbol.

Public Instance methods

Add a flavor to the set The flavor can be named as a string or a symbol.

Raises QualifierFlavorError if its not an allowed flavor

includes?(flavor)

Alias for include?

returns a string representation in MOF syntax format

[Validate]