public interface EntityDefinition
Defines an entity and its properties, functions, etc.
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(QilletniType... constructorParams) Creates a new instance of theEntityTypethis definition represents, with the given constructor parameters in the order defined.createInstance(List<QilletniType> constructorParams) Creates a new instance of theEntityTypethis definition represents, with the given constructor parameters in the order defined.Gets a static instance of the entity, used for invoking static methods.Gets theQilletniTypeClassfor the entity definition.Gets the name of the entity.Gets all fields of the entity that do not have a value assigned to them.
-
Method Details
-
createInstance
Creates a new instance of theEntityTypethis definition represents, with the given constructor parameters in the order defined.- Parameters:
constructorParams- The parameters of the entity's constructor- Returns:
- The created
EntityType
-
createInstance
Creates a new instance of theEntityTypethis definition represents, with the given constructor parameters in the order defined.- Parameters:
constructorParams- The parameters of the entity's constructor- Returns:
- The created
EntityType
-
createStaticInstance
StaticEntityType createStaticInstance()Gets a static instance of the entity, used for invoking static methods.- Returns:
- The created
StaticEntityType
-
getTypeName
-
getUninitializedParams
Map<String,UninitializedType> getUninitializedParams()Gets all fields of the entity that do not have a value assigned to them. These are what makes up the entity's constructor, as all fields must have a value.- Returns:
- The name, value list of all fields without a value yet
-
getQilletniTypeClass
QilletniTypeClass<EntityType> getQilletniTypeClass()Gets theQilletniTypeClassfor the entity definition. This is specific to this definition, but still holds a type ofEntityType.- Returns:
- The type class of the entity
-