Class: RGen::MetamodelBuilder::Intermediate::Feature
- Inherits:
-
Object
- Object
- RGen::MetamodelBuilder::Intermediate::Feature
- Defined in:
- lib/rgen/metamodel_builder/intermediate/feature.rb
Instance Attribute Summary collapse
-
#etype ⇒ Object
readonly
Returns the value of attribute etype.
-
#impl_type ⇒ Object
readonly
Returns the value of attribute impl_type.
Instance Method Summary collapse
Instance Attribute Details
#etype ⇒ Object (readonly)
Returns the value of attribute etype.
10 11 12 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 10 def etype @etype end |
#impl_type ⇒ Object (readonly)
Returns the value of attribute impl_type.
10 11 12 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 10 def impl_type @impl_type end |
Instance Method Details
#annotations ⇒ Object
16 17 18 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 16 def annotations @annotations ||= [] end |
#many? ⇒ Boolean
20 21 22 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 20 def many? value(:upperBound) > 1 || value(:upperBound) == -1 end |
#reference? ⇒ Boolean
24 25 26 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 24 def reference? is_a?(Reference) end |
#value(prop) ⇒ Object
12 13 14 |
# File 'lib/rgen/metamodel_builder/intermediate/feature.rb', line 12 def value(prop) @props[prop] end |