Interface ItemContainer
public interface ItemContainer
Accepts and store data from user input, external system, and so on.
This is an interface, not a class
because record can be customized according to the specification of page templates.
Each record in apps always extends EclibRecord or its extended class,
so interface is needed to customize records.
At that time in that interface you want to record feature like getItems(),
but if this is a class it can't be used.
It is frequently validated with jakarta validation. So it should have features below.
- To resolve item name from propertyPath.
getItems()is used for it.
It's used especially for error message to users.
-
Method Summary
Modifier and TypeMethodDescriptionItem[]Returns an array of items.default ItemReturnsEclibItemfromEclibItem[]andfieldId.default ItemgetNewItem(String itemPropertyPath) Returns a new instance.default Item[]mergeItems(Item[] items1, Item[] items2) Merge common items and record dependent items.
-
Method Details
-
customizedItems
Returns an array of items. -
getNewItem
Returns a new instance. -
getItem
ReturnsEclibItemfromEclibItem[]andfieldId.- Parameters:
itemPropertyPath- itemPropertyPath- Returns:
- HtmlItem
-
mergeItems
-