Package io.jmix.core
Interface EntityAttributeVisitor
- All Known Implementing Classes:
AbstractSingleValueHolder.SingleValuePropertyVisitor,CollectionValuePropertyHolder.CollectionValuePropertyVisitor
public interface EntityAttributeVisitor
Visitor to be submitted to
MetadataTools.traverseAttributes(Object, EntityAttributeVisitor).-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanskip(MetaProperty property) Optionally indicates, whether the property has to be visitedvoidvisit(Object entity, MetaProperty property) Visits an entity attribute.
-
Method Details
-
visit
Visits an entity attribute.- Parameters:
entity- entity instanceproperty- meta-property pointing to the visited attribute
-
skip
Optionally indicates, whether the property has to be visited- Parameters:
property- meta-property that is about to be visited- Returns:
- false if the property has to be visited
-