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 java.lang.String
modelName
protected ModelRepository
modelRepo
protected IEolModule
module
protected java.lang.String
typeName
-
Constructor Summary
Constructors Constructor Description EolModelElementType(java.lang.String modelAndMetaClass)
EolModelElementType(java.lang.String modelAndMetaClass, IEolContext context)
EolModelElementType(MetaClass metaClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<?>
all()
java.util.Collection<?>
allInstances()
java.lang.Object
createInstance()
java.lang.Object
createInstance(java.util.List<java.lang.Object> parameters)
boolean
equals(java.lang.Object other)
java.util.Collection<?>
getAll()
java.util.Collection<?>
getAllInstances()
java.util.Collection<?>
getAllOfKind()
java.util.Collection<?>
getAllOfType()
MetaClass
getMetaClass()
IModel
getModel()
IModel
getModel(boolean updateCached)
Fetches the model from the module's context.java.lang.String
getModelName()
java.lang.String
getName()
java.lang.String
getTypeName()
int
hashCode()
boolean
isInstantiable()
boolean
isKind(java.lang.Object o)
boolean
isType(java.lang.Object o)
void
setMetaClass(MetaClass metaClass)
void
setModelName(java.lang.String model)
void
setTypeName(java.lang.String type)
java.lang.String
toString()
-
-
-
Field Detail
-
modelName
protected java.lang.String modelName
-
typeName
protected java.lang.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(java.lang.String modelAndMetaClass)
-
EolModelElementType
public EolModelElementType(java.lang.String modelAndMetaClass, IEolContext context) throws EolModelNotFoundException, EolModelElementTypeNotFoundException
-
-
Method Detail
-
getModelName
public java.lang.String getModelName()
-
setModelName
public void setModelName(java.lang.String model)
-
getTypeName
public java.lang.String getTypeName()
-
setTypeName
public void setTypeName(java.lang.String type)
-
getAllOfKind
public java.util.Collection<?> getAllOfKind()
-
getAllOfType
public java.util.Collection<?> getAllOfType()
-
getAll
public java.util.Collection<?> getAll()
-
all
public java.util.Collection<?> all()
-
getAllInstances
public java.util.Collection<?> getAllInstances()
-
allInstances
public java.util.Collection<?> allInstances()
-
isInstantiable
public boolean isInstantiable() throws EolModelElementTypeNotFoundException
-
createInstance
public java.lang.Object createInstance() throws EolRuntimeException
- Specified by:
createInstance
in classEolType
- Throws:
EolRuntimeException
-
createInstance
public java.lang.Object createInstance(java.util.List<java.lang.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)
-
-