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
-
Reflective Access: Features can be accessed dynamically via eGet(_:) and eSet(_:_:)
-
Identity: Every object has a unique identifier via
Identifiable -
Value Semantics: Thread-safe through
Sendableand value comparison viaHashable
Usage
Types conforming to EObject must implement the reflective API to allow dynamic access to their structural features (attributes and references).
Topics
Associated Types
The type of classifier (metaclass) for this object.
The identifier type (must be EUUID).
Instance Properties
Returns the metaclass (EClass) describing this object’s type.
Unique identifier for this object.
Instance Methods
Reflectively retrieves the value of a feature.
Checks whether a feature has been explicitly set.
Reflectively sets the value of a feature.
Unsets a feature, returning it to its default value.
Relationships
Inherits From
Inherited By
Conforming Types
See Also
Core Types
A dynamic implementation of EObject that stores feature values generically.
A class in the Ecore metamodel.
A package in the Ecore metamodel.