Package org.eclipse.epsilon.eol.types
Class EolModelElementType
- java.lang.Object
-
- org.eclipse.epsilon.eol.types.EolType
-
- org.eclipse.epsilon.eol.types.EolModelElementType
-
public class EolModelElementType extends EolType
-
-
Field Summary
Fields Modifier and Type Field Description protected IModel
cachedModelRef
protected MetaClass
metaClass
protected String
modelName
protected ModelRepository
modelRepo
protected IEolModule
module
protected String
typeName
-
Constructor Summary
Constructors Constructor Description EolModelElementType(String modelAndMetaClass)
EolModelElementType(String modelAndMetaClass, IEolContext context)
EolModelElementType(MetaClass metaClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<?>
all()
Collection<?>
allInstances()
Object
createInstance()
Object
createInstance(List<Object> parameters)
boolean
equals(Object other)
Collection<?>
getAll()
Collection<?>
getAllInstances()
Collection<?>
getAllOfKind()
Collection<?>
getAllOfType()
MetaClass
getMetaClass()
IModel
getModel()
IModel
getModel(boolean updateCached)
Fetches the model from the module's context.String
getModelName()
String
getName()
List<EolType>
getParentTypes()
String
getTypeName()
int
hashCode()
boolean
isInstantiable()
boolean
isKind(Object o)
boolean
isType(Object o)
void
setMetaClass(MetaClass metaClass)
void
setModelName(String model)
void
setTypeName(String type)
String
toString()
-
Methods inherited from class org.eclipse.epsilon.eol.types.EolType
getParentType, isNot
-
-
-
-
Field Detail
-
modelName
protected String modelName
-
typeName
protected String typeName
-
module
protected IEolModule module
-
modelRepo
protected ModelRepository modelRepo
-
metaClass
protected MetaClass metaClass
-
cachedModelRef
protected IModel cachedModelRef
-
-
Constructor Detail
-
EolModelElementType
public EolModelElementType(MetaClass metaClass)
-
EolModelElementType
public EolModelElementType(String modelAndMetaClass)
-
EolModelElementType
public EolModelElementType(String modelAndMetaClass, IEolContext context) throws EolModelNotFoundException, EolModelElementTypeNotFoundException
-
-
Method Detail
-
getModelName
public String getModelName()
-
setModelName
public void setModelName(String model)
-
getTypeName
public String getTypeName()
-
setTypeName
public void setTypeName(String type)
-
getAllOfKind
public Collection<?> getAllOfKind()
-
getAllOfType
public Collection<?> getAllOfType()
-
getAll
public Collection<?> getAll()
-
all
public Collection<?> all()
-
getAllInstances
public Collection<?> getAllInstances()
-
allInstances
public Collection<?> allInstances()
-
isInstantiable
public boolean isInstantiable() throws EolModelElementTypeNotFoundException
-
createInstance
public Object createInstance() throws EolRuntimeException
- Specified by:
createInstance
in classEolType
- Throws:
EolRuntimeException
-
createInstance
public Object createInstance(List<Object> parameters) throws EolRuntimeException
- Specified by:
createInstance
in classEolType
- Throws:
EolRuntimeException
-
getModel
public IModel getModel() throws EolModelElementTypeNotFoundException
-
getModel
public IModel getModel(boolean updateCached) throws EolModelElementTypeNotFoundException
Fetches the model from the module's context.- Parameters:
updateCached
- Whether to re-acquire reference to the model and model repository.- Returns:
- The model
- Throws:
EolModelElementTypeNotFoundException
- Since:
- 1.6
-
getMetaClass
public MetaClass getMetaClass()
-
setMetaClass
public void setMetaClass(MetaClass metaClass)
-
getParentTypes
public List<EolType> getParentTypes()
- Overrides:
getParentTypes
in classEolType
-
-