public class ClassInfo extends Object implements Serializable
EClass
.Modifier | Constructor and Description |
---|---|
protected |
ClassInfo(String name,
String uri)
Constructs a new
ClassInfo with the given name and uri , which are used as a simple
representation of a an EClass . |
Modifier and Type | Method and Description |
---|---|
EClass |
eClass()
Retrieves the
EClass corresponding to this ClassInfo . |
static ClassInfo |
from(PersistentEObject object)
Creates a new
ClassInfo from the given object . |
String |
name()
Returns the name of the
EClass . |
static ClassInfo |
of(String name,
String uri)
Creates a new
ClassInfo with the given name and uri , which are used as a simple
representation of a an EClass . |
String |
uri()
|
@Nonnull public static ClassInfo from(@Nonnull PersistentEObject object)
ClassInfo
from the given object
. The EClass
will be found by calling the
EObject.eClass()
method.
This method behaves like: of(eClass.getName(), eClass.getEPackage().getNsURI())
.
object
- the object from which the EClass
has to be retrieve with the EObject.eClass()
methodClassInfo
of(String, String)
@Nonnull public static ClassInfo of(@Nonnull String name, @Nonnull String uri)
ClassInfo
with the given name
and uri
, which are used as a simple
representation of a an EClass
.Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.