Method
add(_:)
Adds an object to this resource.
@discardableResult func add(_ object: any EObject) -> Bool
Parameters
object-
The object to add to this resource.
Return Value
true if the object was added, false if it already exists.
Discussion
The object becomes owned by this resource and can be resolved by its identifier. If the object is not contained by another object, it becomes a root object.