Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/collections/CollectionAttribute.java @ 6974:458f20eeb65c
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 06 Sep 2013 15:37:56 +0200 |
parents | af13ceeba52a |
children | e1010a0f0b05 |
comparison
equal
deleted
inserted
replaced
6973:b4faf69ad1d0 | 6974:458f20eeb65c |
---|---|
64 output.getType())); | 64 output.getType())); |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 | 68 |
69 /** Remove outputs without facets from outputMap. */ | |
69 public void cleanEmptyOutputs() { | 70 public void cleanEmptyOutputs() { |
70 if (outputMap == null) { | 71 if (outputMap == null) { |
71 return; | 72 return; |
72 } | 73 } |
73 | 74 |
110 } | 111 } |
111 | 112 |
112 | 113 |
113 public void addFacet(String outputKey, Facet facet) { | 114 public void addFacet(String outputKey, Facet facet) { |
114 if (facet == null) { | 115 if (facet == null) { |
115 logger.warn("Tried to add empty facet."); | 116 logger.warn("Tried to add null facet."); |
116 return; | 117 return; |
117 } | 118 } |
118 | 119 |
119 if (outputMap == null) { | 120 if (outputMap == null) { |
120 logger.warn("Tried to add facet but no Outputs are existing yet."); | 121 logger.warn("Tried to add facet but no Outputs are existing yet."); |
137 // TODO Replace this Node with a Java class object. | 138 // TODO Replace this Node with a Java class object. |
138 this.loadedRecommendations = loadedRecommendations; | 139 this.loadedRecommendations = loadedRecommendations; |
139 } | 140 } |
140 | 141 |
141 | 142 |
143 /** Empty facets list for outputKey output. */ | |
142 public void clearFacets(String outputKey) { | 144 public void clearFacets(String outputKey) { |
143 if (outputKey == null || outputKey.length() == 0) { | 145 if (outputKey == null || outputKey.length() == 0) { |
144 logger.warn("Tried to clear Facets, but no Output key specified!"); | 146 logger.warn("Tried to clear Facets, but no Output key specified!"); |
145 return; | 147 return; |
146 } | 148 } |