module RGen::ECore::EClass::ClassModule

Public Instance Methods

concrete() click to toggle source
# File lib/rgen/ecore/ecore_ext.rb, line 67
def concrete
  !(abstract || interface)
end
eAllAttributes_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 159
def eAllAttributes_derived
  eAttributes + eSuperTypes.eAllAttributes
end
eAllContainments_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 162
def eAllContainments_derived
  eReferences.select{|r| r.containment} + eSuperTypes.eAllContainments
end
eAllReferences_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 165
def eAllReferences_derived
  eReferences + eSuperTypes.eAllReferences
end
eAllStructuralFeatures_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 168
def eAllStructuralFeatures_derived
  eStructuralFeatures + eSuperTypes.eAllStructuralFeatures
end
eAllSubTypes() click to toggle source
# File lib/rgen/ecore/ecore_ext.rb, line 63
def eAllSubTypes
  eSubTypes + eSubTypes.eAllSubTypes
end
eAllSuperTypes_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 171
def eAllSuperTypes_derived
  eSuperTypes + eSuperTypes.eAllSuperTypes
end
eAttributes_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 174
def eAttributes_derived
  eStructuralFeatures.select{|f| f.is_a?(EAttribute)}
end
eReferences_derived() click to toggle source
# File lib/rgen/ecore/ecore.rb, line 177
def eReferences_derived
  eStructuralFeatures.select{|f| f.is_a?(EReference)}
end
isAssignableFrom(cls) click to toggle source
# File lib/rgen/ecore/ecore_ext.rb, line 71
def isAssignableFrom(cls)
  cls == self || cls.eAllSuperTypes.any? { |super_type| super_type == self }
end
qualifiedName() click to toggle source
# File lib/rgen/ecore/ecore_ext.rb, line 55
def qualifiedName
        if ePackage
                ePackage.qualifiedName+"::"+name
        else
                name
        end
end