Interface RelatedItemsCollector

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MAX_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 given theSource item against given ItemVisitor and 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 given theSource item against best matching ItemVisitor and returns all collected relatives.
    • Field Detail

    • Method Detail

      • collect

        <T extends ItemModel> java.util.List<ItemModel> collect​(T theSource,
                                                                java.util.Map<java.lang.String,​java.lang.Object> ctx)
        Travers given theSource item against best matching ItemVisitor and returns all collected relatives. Note:
        Type Parameters:
        T - specific model class derived from ItemModel
        Parameters:
        theSource - given item
        ctx - ctx given context
        Returns:
        all relatives for a given theSource item
      • 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 given theSource item against given ItemVisitor and returns all collected relatives.
        Type Parameters:
        T - specific model class derived from ItemModel
        Parameters:
        theSource - given item
        theStrategy - given ItemVisitor
        ctx - given context
        Returns:
        all relatives for a given theSource item and given theStrategy