- All Superinterfaces:
AnyType,QilletniType
A user-defined Qilletni type. A new instance of an
EntityType is created for each instance of an entity.-
Method Summary
Modifier and TypeMethodDescriptionGets theEntityDefinitionthat the user defined that this entity was created from.Gets the isolatedScopefor this entity instance.voidvalidateType(String typeName) Checks if the entity's name is the giventypeName.Methods inherited from interface dev.qilletni.api.lang.types.QilletniType
getTypeClass, minusOperator, minusOperatorInPlace, plusOperator, plusOperatorInPlace, qilletniEquals, stringValue, typeName
-
Method Details
-
getEntityDefinition
EntityDefinition getEntityDefinition()Gets theEntityDefinitionthat the user defined that this entity was created from. There is only oneEntityDefinitionfor each defined entity.- Returns:
- The
EntityDefinitionfor the entity
-
getEntityScope
-
validateType
Checks if the entity's name is the giventypeName. If not, an error is thrown.- Parameters:
typeName- The expected name of the entity
-