enabling remote servers for release version
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / ICdmViewer.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.view;
11
12 import java.util.Map;
13
14
15 /**
16 * Implementors of this interface provide a mapping of input elements to views
17 * or editors which can display information or provide editing functionality for
18 * the input elements.
19 *
20 * @author pplitzner
21 * @date Feb 23, 2015
22 *
23 */
24 public interface ICdmViewer {
25
26 /**
27 * For the given input a map is returned specifying the available viewer
28 * classes as keys and their string representation as values
29 *
30 * @param input
31 * the input for which the viewer classes should be returned
32 * @return a map holding the viewer classes as keys and their string
33 * representations as values
34 */
35 public Map<Class<?>, String> getViewerClasses(Object input);
36
37 /**
38 * Opens the viewer defined by the given viewerClass for the given input.
39 * @param input the input for which a viewer should be opened
40 * @param viewerClass the qualified class name of the viewer
41 */
42 public void show(Object input, Class<?> viewerClass);
43
44 }