comparison artifacts/src/main/java/org/dive4elements/river/artifacts/CollectionMonitor.java @ 5867:59ff03ff48f1

River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:23:01 +0200
parents 4897a58c8746
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
41 } 41 }
42 42
43 43
44 @Override 44 @Override
45 public void execute(Artifact artifact, CallContext context, Document doc) { 45 public void execute(Artifact artifact, CallContext context, Document doc) {
46 FLYSArtifact flys = (FLYSArtifact) artifact; 46 D4EArtifact flys = (D4EArtifact) artifact;
47 47
48 Element result = (Element) XMLUtils.xpath( 48 Element result = (Element) XMLUtils.xpath(
49 doc, 49 doc,
50 XPATH_RESULT, 50 XPATH_RESULT,
51 XPathConstants.NODE, 51 XPathConstants.NODE,
73 /** 73 /**
74 * Get outputnames from current state (only the ones for which 74 * Get outputnames from current state (only the ones for which
75 * facets exist). 75 * facets exist).
76 */ 76 */
77 public static String[] extractOutputNames( 77 public static String[] extractOutputNames(
78 FLYSArtifact flys, 78 D4EArtifact flys,
79 CallContext context) 79 CallContext context)
80 { 80 {
81 if (flys instanceof ChartArtifact) { 81 if (flys instanceof ChartArtifact) {
82 return new String[0]; 82 return new String[0];
83 } 83 }
98 98
99 /** 99 /**
100 * Creates Map from Strings "recommended" to "true". 100 * Creates Map from Strings "recommended" to "true".
101 */ 101 */
102 protected Map<String, Object> getNoneUserSpecificParameters( 102 protected Map<String, Object> getNoneUserSpecificParameters(
103 FLYSArtifact flys, 103 D4EArtifact flys,
104 CallContext context) 104 CallContext context)
105 { 105 {
106 Map<String, Object> params = new HashMap<String, Object>(1); 106 Map<String, Object> params = new HashMap<String, Object>(1);
107 params.put("recommended", "true"); 107 params.put("recommended", "true");
108 108

http://dive4elements.wald.intevation.org