public interface EntityDefinitionManager
A global manager for the definitions of entities, checking if they exist, and dynamically creating them.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefineEntity(EntityDefinition entityDefinition) Adds an entity definition to the manager, allowing it to be created and used.booleanChecks if an entity of the given name is defined.Looks up the definition of a given entity name.
-
Method Details
-
isDefined
Checks if an entity of the given name is defined.- Parameters:
entityType- The name of the entity- Returns:
- If the entity is defined
-
lookup
Looks up the definition of a given entity name.isDefined(String)must returntruefor this to not throw an error.- Parameters:
entityType- The name of the entity- Returns:
- The definition of the entity
-
defineEntity
Adds an entity definition to the manager, allowing it to be created and used.- Parameters:
entityDefinition- The definition of the entity to add
-