Interface RelatedItemsCollector
-
- All Known Implementing Classes:
DefaultRelatedItemsCollector
public interface RelatedItemsCollectorAn interface represents collector that gathers relevant items for a giventheSource.Note:
Please seeItemVisitorRegistryItemVisitorfor more information
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMAX_RECURSION_DEPTH
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ItemModel>
java.util.List<ItemModel>collect(T theSource, ItemVisitor<T> theStrategy, java.util.Map<java.lang.String,java.lang.Object> ctx)Travers giventheSourceitem against givenItemVisitorand returns all collected relatives.<T extends ItemModel>
java.util.List<ItemModel>collect(T theSource, java.util.Map<java.lang.String,java.lang.Object> ctx)Travers giventheSourceitem against best matchingItemVisitorand returns all collected relatives.
-
-
-
Field Detail
-
MAX_RECURSION_DEPTH
static final java.lang.String MAX_RECURSION_DEPTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
collect
<T extends ItemModel> java.util.List<ItemModel> collect(T theSource, java.util.Map<java.lang.String,java.lang.Object> ctx)
Travers giventheSourceitem against best matchingItemVisitorand returns all collected relatives. Note:- Type Parameters:
T- specific model class derived from ItemModel- Parameters:
theSource- given itemctx- ctx given context- Returns:
- all relatives for a given
theSourceitem
-
collect
<T extends ItemModel> java.util.List<ItemModel> collect(T theSource, ItemVisitor<T> theStrategy, java.util.Map<java.lang.String,java.lang.Object> ctx)
Travers giventheSourceitem against givenItemVisitorand returns all collected relatives.- Type Parameters:
T-specific model class derived from ItemModel - Parameters:
theSource- given itemtheStrategy- givenItemVisitorctx- given context- Returns:
- all relatives for a given
theSourceitem and giventheStrategy
-
-