Class: CIM::ClassFeature
- Inherits:
-
NamedElement
- Object
- NamedElement
- CIM::ClassFeature
- Defined in:
- lib/cim/class_feature.rb
Overview
ClassFeature is the base class for Class Property and Method
A ClassFeature has a type (Type), name (String), and optional Qualifiers
Access to ClassFeature attributes is protected, use the derived classes Property, Method and Reference
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from NamedElement
Instance Method Summary collapse
-
#key? ⇒ Boolean
if has key qualifier.
-
#method? ⇒ Boolean
if Method.
-
#property? ⇒ Boolean
if Property.
-
#reference? ⇒ Boolean
if Reference.
-
#static? ⇒ Boolean
if static (class-level) feature.
Methods inherited from NamedElement
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
20 21 22 |
# File 'lib/cim/class_feature.rb', line 20 def type @type end |
Instance Method Details
#key? ⇒ Boolean
if has key qualifier
24 25 26 |
# File 'lib/cim/class_feature.rb', line 24 def key? @qualifiers && @qualifiers.include?(:key,:boolean) end |
#method? ⇒ Boolean
if Method
42 43 44 |
# File 'lib/cim/class_feature.rb', line 42 def method? false end |
#property? ⇒ Boolean
if Property
36 37 38 |
# File 'lib/cim/class_feature.rb', line 36 def property? false end |
#reference? ⇒ Boolean
if Reference
48 49 50 |
# File 'lib/cim/class_feature.rb', line 48 def reference? false end |
#static? ⇒ Boolean
if static (class-level) feature
30 31 32 |
# File 'lib/cim/class_feature.rb', line 30 def static? false end |