View Javadoc

1   package org.shortbrain.vaadin.container.property;
2   
3   import java.util.Collection;
4   
5   /**
6    * 
7    * @author Vincent Demeester <vincent@shortbrain.org>
8    * 
9    * @param <IDTYPE>
10   *            The type of the item identifier
11   * @param <BEANTYPE>
12   *            The type of the Bean
13   * 
14   * @since 0.2.0
15   */
16  public interface HierarchicalBeanBuilder<IDTYPE, BEANTYPE> {
17  
18      /**
19       * Get a {@link Collection} of IDTYPE for the given bean
20       * 
21       * @param bean
22       *            The bean
23       * @return The children of type IDTYPE
24       */
25      Collection<IDTYPE> getChildren(BEANTYPE bean);
26  }