Interface ClassObject

All Superinterfaces:
org.eclipse.emf.ecore.EObject, ModelElement, org.eclipse.emf.common.notify.Notifier, Object
All Known Implementing Classes:
ClassObjectImpl

public interface ClassObject extends Object
A representation of the model object 'Class Object'.

The following features are supported:

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Finds an AttributeSlot contained in this ClassObject with the specified feature.
    Finds a ContainmentSlot contained in this ClassObject with the specified feature.
    Finds a ReferenceSlot contained in this ClassObject with the specified feature.
    Slot<?>
    findSlot(String feature)
    Finds a Slot contained in this ClassObject with the specified feature.
    org.eclipse.emf.ecore.EClass
    Returns the corresponding EClass in the containing PackageObject's metamodel.
    Returns the PackageObject that contains this ClassObject.
    org.eclipse.emf.common.util.EList<Slot<?>>
    Returns the value of the 'Slots' containment reference list.
    boolean
    Returns true only if this Slot has a corresponding EClass in the containing PackageObject's metamodel.
    boolean
    typeCompatibleWith(org.eclipse.emf.ecore.EClass eClass)
    Indicates whether every Slot contained in this ClassObject is type compatible with some EStructuralFeature contained in eClass

    Methods inherited from interface org.eclipse.emf.ecore.EObject

    eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset

    Methods inherited from interface org.eclipse.epsilon.hutn.model.hutn.ModelElement

    getCol, getLine, setCol, setLine

    Methods inherited from interface org.eclipse.emf.common.notify.Notifier

    eAdapters, eDeliver, eNotify, eSetDeliver

    Methods inherited from interface org.eclipse.epsilon.hutn.model.hutn.Object

    getIdentifier, getType, setIdentifier, setType
  • Method Details

    • getSlots

      org.eclipse.emf.common.util.EList<Slot<?>> getSlots()
      Returns the value of the 'Slots' containment reference list. The list contents are of type Slot<?>. It is bidirectional and its opposite is 'Owner'.

      If the meaning of the 'Slots' containment reference list isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Slots' containment reference list.
      See Also:
    • findSlot

      Slot<?> findSlot(String feature)
      Finds a Slot contained in this ClassObject with the specified feature. If this ClassObject contains no such Slot, this method returns null. If this ClassObject contains more than one matching Slot, this method returns any one of the matching Slots.
    • findOrCreateAttributeSlot

      AttributeSlot findOrCreateAttributeSlot(String feature)
      Finds an AttributeSlot contained in this ClassObject with the specified feature. If this ClassObject contains no such AttributeSlot, this method returns a new AttributeSlot with the feature specified. If this ClassObject contains more than one matching AttributeSlot, this method returns any one of the matching AttributeSlots.
    • findOrCreateReferenceSlot

      ReferenceSlot findOrCreateReferenceSlot(String feature)
      Finds a ReferenceSlot contained in this ClassObject with the specified feature. If this ClassObject contains no such ReferenceSlot, this method returns a new ReferenceSlot with the feature specified. If this ClassObject contains more than one matching ReferenceSlot, this method returns any one of the matching ReferenceSlots.
    • findOrCreateContainmentSlot

      ContainmentSlot findOrCreateContainmentSlot(String feature)
      Finds a ContainmentSlot contained in this ClassObject with the specified feature. If this ClassObject contains no such ContainmentSlot, this method returns a new ContainmentSlot with the feature specified. If this ClassObject contains more than one matching ContainmentSlot, this method returns any one of the matching ContainmentSlots.
    • getPackageObject

      PackageObject getPackageObject()
      Returns the PackageObject that contains this ClassObject.
    • getEClass

      org.eclipse.emf.ecore.EClass getEClass()
      Returns the corresponding EClass in the containing PackageObject's metamodel.
    • hasEClass

      boolean hasEClass()
      Returns true only if this Slot has a corresponding EClass in the containing PackageObject's metamodel.
    • typeCompatibleWith

      boolean typeCompatibleWith(org.eclipse.emf.ecore.EClass eClass)
      Indicates whether every Slot contained in this ClassObject is type compatible with some EStructuralFeature contained in eClass