PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/sitebricks/src/main/java/com/google/sitebricks/Renderable.java

http://github.com/dhanji/sitebricks
Java | 18 lines | 6 code | 3 blank | 9 comment | 0 complexity | dcc82f6d14edddfe84a4f102cfc625d8 MD5 | raw file
 1package com.google.sitebricks;
 2
 3import java.util.Set;
 4
 5/**
 6 * @author Dhanji R. Prasanna (dhanji@gmail.com)
 7 */
 8public interface Renderable {
 9    void render(Object bound, Respond respond);
10
11    /**
12     *
13     * @param clazz A class to match.
14     * @return Returns a set of children matching the class, searching down
15     *  to the leaves of the tree. 
16     */
17    <T extends Renderable> Set<T> collect(Class<T> clazz);
18}