Documentation Language: Swift

Protocol

EObject

Base protocol for all Ecore model elements.

protocol EObject : EcoreValue

Overview

EObject is the root of the Ecore metamodel hierarchy. All model elements (both metamodel definitions and model instances) conform to this protocol.

Key Capabilities

Usage

Types conforming to EObject must implement the reflective API to allow dynamic access to their structural features (attributes and references).

Topics

Associated Types

T
Classifier

The type of classifier (metaclass) for this object.

T
ID

The identifier type (must be EUUID).

Instance Properties

V
eClass

Returns the metaclass (EClass) describing this object’s type.

V
id

Unique identifier for this object.

Instance Methods

F
eGet(_:)

Reflectively retrieves the value of a feature.

F
eIsSet(_:)

Checks whether a feature has been explicitly set.

F
eSet(_:_:)

Reflectively sets the value of a feature.

F
eUnset(_:)

Unsets a feature, returning it to its default value.

Relationships

Inherits From

Inherited By

Conforming Types

See Also

Core Types

S
DynamicEObject

A dynamic implementation of EObject that stores feature values generically.

S
EClass

A class in the Ecore metamodel.

S
EPackage

A package in the Ecore metamodel.