public class ContainerInfo extends Object implements Serializable
PersistentEObject and another. The referenced
PersistentEObject is identified by the name the reference used to retrieve it.| Modifier | Constructor and Description |
|---|---|
protected |
ContainerInfo(Id id,
String name)
Constructs a new
ContainerInfo with the given id and the given name. |
| Modifier and Type | Method and Description |
|---|---|
static ContainerInfo |
from(PersistentEObject object,
EReference reference)
Creates a new
ContainerInfo from the given object and reference. |
Id |
id()
Returns the identifier of the
PersistentEObject. |
String |
name()
Returns the name the
EReference used to retrieve the container of the PersistentEObject. |
static ContainerInfo |
of(Id id,
String name)
Creates a new
ContainerInfo with the given id and name. |
protected ContainerInfo(@Nonnull Id id, @Nonnull String name)
ContainerInfo with the given id and the given name.id - the identifier of the PersistentEObjectname - the name the reference used to retrieve the container of the PersistentEObject@Nonnull public static ContainerInfo from(@Nonnull PersistentEObject object, @Nonnull EReference reference)
ContainerInfo from the given object and reference.
This method behaves like: of(object.id(), reference.getName()).
object - the PersistentEObjectreference - the reference used to retrieve the container of the PersistentEObjectContainerInfoof(Id, String)@Nonnull public static ContainerInfo of(@Nonnull Id id, @Nonnull String name)
ContainerInfo with the given id and name.id - the identifier of the PersistentEObjectname - the name the reference used to retrieve the container of the PersistentEObjectContainerInfo@Nonnull public Id id()
PersistentEObject.@Nonnull public String name()
EReference used to retrieve the container of the PersistentEObject.Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.