Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/Facet.java @ 280:7fbe674d758a
Facets got a method that return its required data from the owner artifact.
artifacts/trunk@2139 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 17 Jun 2011 07:40:20 +0000 |
parents | 9ad188df72f2 |
children | e5bc48dc3ec3 |
comparison
equal
deleted
inserted
replaced
279:5ed1afd81569 | 280:7fbe674d758a |
---|---|
1 package de.intevation.artifactdatabase.state; | 1 package de.intevation.artifactdatabase.state; |
2 | 2 |
3 import java.io.Serializable; | 3 import java.io.Serializable; |
4 | |
5 import de.intevation.artifacts.Artifact; | |
6 import de.intevation.artifacts.CallContext; | |
4 | 7 |
5 | 8 |
6 /** | 9 /** |
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
8 */ | 11 */ |
27 * Returns the description of this facet. | 30 * Returns the description of this facet. |
28 * | 31 * |
29 * @return the description of this facet. | 32 * @return the description of this facet. |
30 */ | 33 */ |
31 String getDescription(); | 34 String getDescription(); |
35 | |
36 | |
37 /** | |
38 * Returns the data this facet requires. | |
39 * | |
40 * @param artifact The owner artifact. | |
41 * @param context The CallContext. | |
42 * | |
43 * @return the data. | |
44 */ | |
45 Object getData(Artifact artifact, CallContext context); | |
32 } | 46 } |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : | 47 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |