comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/AreaFacet.java @ 2010:7f99845e9499

Store and access area.name data item. flys-artifacts/trunk@3458 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 19 Dec 2011 07:53:22 +0000
parents 28a5c163f9cd
children 3f1a63da2cf4
comparison
equal deleted inserted replaced
2009:0eab7d98a850 2010:7f99845e9499
38 * Gets Cross Section (profile). 38 * Gets Cross Section (profile).
39 * @param art artifact to get data from. 39 * @param art artifact to get data from.
40 * @param context ignored 40 * @param context ignored
41 */ 41 */
42 public Object getData(Artifact art, CallContext context) { 42 public Object getData(Artifact art, CallContext context) {
43 logger.debug("Get data for area ding"); 43 logger.debug("Get data for area.");
44 44
45 // Get information from artifact about which 45 // Get information from artifact about which
46 // info to grab from blackboard. 46 // info to grab from blackboard.
47 // 47 //
48 // All compatible facets should provide their data 48 // All compatible facets should provide their data
69 upperData = providers.get(0).provideData( 69 upperData = providers.get(0).provideData(
70 artifact.getUpperDPKey(), null, context); 70 artifact.getUpperDPKey(), null, context);
71 } 71 }
72 72
73 if (upperData == null && lowerData == null) { 73 if (upperData == null && lowerData == null) {
74 logger.warn("No 'upper' given for area"); 74 logger.warn("Not given 'upper' and 'lower' for area");
75 return null;
76 } 75 }
77 76
78 return new Object[] {lowerData, upperData}; 77 return new Object[] {lowerData, upperData};
79 } 78 }
80 79

http://dive4elements.wald.intevation.org