comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFacet.java @ 8117:ca072278ad02

Complete mapping and themes for sediment load.
author "Tom Gottfried <tom@intevation.de>"
date Thu, 21 Aug 2014 18:09:37 +0200
parents f5c0ed04f673
children c200b76145ce
comparison
equal deleted inserted replaced
8116:fdb29e8b7ec0 8117:ca072278ad02
47 extends DataFacet 47 extends DataFacet
48 implements FacetTypes, StaticFacet 48 implements FacetTypes, StaticFacet
49 { 49 {
50 private static Logger logger = Logger.getLogger(SedimentLoadFacet.class); 50 private static Logger logger = Logger.getLogger(SedimentLoadFacet.class);
51 51
52 private static final String NAME = SEDIMENT_LOAD_TA_STATIC; 52 private static final String NAME = "sedimentload";
53 53
54 public SedimentLoadFacet() { 54 public SedimentLoadFacet() {
55 } 55 }
56 56
57 public SedimentLoadFacet(int idx, String name, String description, 57 public SedimentLoadFacet(int idx, String name, String description,
98 String idStr = split[0]; 98 String idStr = split[0];
99 99
100 String fraction = split.length >= 2 ? split[1] : ""; 100 String fraction = split.length >= 2 ? split[1] : "";
101 String years = split.length >= 3 ? " - " + split[2] : ""; 101 String years = split.length >= 3 ? " - " + split[2] : "";
102 102
103 name = NAME; 103 // Name has the pattern sedimentload.<grainfraction_name>
104 name = NAME + "." + fraction;
105 logger.debug("Created facet: " + name);
104 106
105 description = Resources.getMsg( 107 description = Resources.getMsg(
106 callMeta, 108 callMeta,
107 "facet.sedimentload." + fraction, 109 "facet.sedimentload." + fraction,
108 new Object[] { years }); 110 new Object[] { years });

http://dive4elements.wald.intevation.org