Package io.jmix.dynmodelai.util
Class DynamicModelDefinitionUtils
java.lang.Object
io.jmix.dynmodelai.util.DynamicModelDefinitionUtils
Read-only lookup methods for dynamic model definitions. Names are matched exactly.
-
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiable list of attribute names in definition order.static Optional<DynamicAttributeDefinition> findAttribute(DynamicEntityDefinition entity, String attributeName) Returns the first attribute with the given name, or empty if it is absent.static Optional<DynamicAttributeDefinition> findAttribute(DynamicModelDefinition model, String entityName, String attributeName) Returns empty if either the entity or its attribute is absent.static Optional<DynamicEntityDefinition> findEntity(DynamicModelDefinition model, String entityName) Returns the first entity with the given name, or empty if it is absent.static booleanhasAttribute(DynamicEntityDefinition entity, String attributeName)
-
Method Details
-
findEntity
public static Optional<DynamicEntityDefinition> findEntity(DynamicModelDefinition model, String entityName) Returns the first entity with the given name, or empty if it is absent. -
findAttribute
public static Optional<DynamicAttributeDefinition> findAttribute(DynamicEntityDefinition entity, String attributeName) Returns the first attribute with the given name, or empty if it is absent. -
findAttribute
public static Optional<DynamicAttributeDefinition> findAttribute(DynamicModelDefinition model, String entityName, String attributeName) Returns empty if either the entity or its attribute is absent. -
hasAttribute
-
attributeNames
Returns an unmodifiable list of attribute names in definition order.
-