comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/Facet.java @ 351:eb1136134d09

Prepare inter-facet pre-rendering communication ('blackboard') phase. artifacts/trunk@3329 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 30 Nov 2011 08:13:48 +0000
parents 93a774fe2bb4
children 1d11a0531242
comparison
equal deleted inserted replaced
350:ab743e750ac6 351:eb1136134d09
1 package de.intevation.artifactdatabase.state; 1 package de.intevation.artifactdatabase.state;
2
3 import java.util.List;
2 4
3 import java.io.Serializable; 5 import java.io.Serializable;
4 6
5 import org.w3c.dom.Document; 7 import org.w3c.dom.Document;
6 import org.w3c.dom.Node; 8 import org.w3c.dom.Node;
47 */ 49 */
48 Object getData(Artifact artifact, CallContext context); 50 Object getData(Artifact artifact, CallContext context);
49 51
50 52
51 /** 53 /**
54 * Get keys for which this Facet can provide data (for other facets, not
55 * for plot).
56 *
57 * @return list of keys
58 */
59 List getDataProviderKeys();
60
61
62 /**
63 * Provide data to other facet.
64 *
65 * @param art The artifact that this facet belongs to.
66 * @param key the key of the requested service.
67 * @param prm optional parameters.
68 * @param ctxt the callcontext.
69 *
70 * @return the data
71 */
72 Object provideBlackboardData(
73 Artifact art,
74 Object key,
75 Object prm,
76 CallContext ctxt);
77
78
79 /**
52 * Write the internal representation of a facet to a node. 80 * Write the internal representation of a facet to a node.
53 * 81 *
54 * @param doc A Document. 82 * @param doc A Document.
55 * 83 *
56 * @return the representation as Node. 84 * @return the representation as Node.

http://dive4elements.wald.intevation.org