Interface AttributeModePopulatorsProvider
- All Known Implementing Classes:
DefaultAttributeModePopulatorsProvider
public interface AttributeModePopulatorsProvider
Service to provide populators for
AttributeDescriptorModel and StructureTypeMode.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStructureTypeModeAttributePopulators(BiPredicate<AttributeDescriptorModel, StructureTypeMode> constrainedBy, List<Populator<AttributeDescriptorModel, ComponentTypeAttributeData>> attributePopulators) Adds new attribute structure type mode to the existing list of attribute structure per mode.getAttributePopulators(AttributeDescriptorModel attributeDescriptor, StructureTypeMode structureTypeMode) Given an attribute descriptor model and a StructureTypeMode, return the list of Populators for this attribute type defined in the configuration.
-
Method Details
-
getAttributePopulators
List<Populator<AttributeDescriptorModel,ComponentTypeAttributeData>> getAttributePopulators(AttributeDescriptorModel attributeDescriptor, StructureTypeMode structureTypeMode) Given an attribute descriptor model and a StructureTypeMode, return the list of Populators for this attribute type defined in the configuration.- Parameters:
attributeDescriptor- the attribute that will be tested to look for populators.structureTypeMode- theStructureTypeMode- Returns:
- the list of populators.
-
addStructureTypeModeAttributePopulators
void addStructureTypeModeAttributePopulators(BiPredicate<AttributeDescriptorModel, StructureTypeMode> constrainedBy, List<Populator<AttributeDescriptorModel, ComponentTypeAttributeData>> attributePopulators) Adds new attribute structure type mode to the existing list of attribute structure per mode.- Parameters:
constrainedBy- the biPredicate that contrains the usage of the following populators.attributePopulators- the attribute populators that will be applied if the corresponding biPredicate is true.
-