Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2035:3ebbe497d7f7
#252 Set titles in waterlevel exports to named main values if those are existing for given Q values.
flys-artifacts/trunk@3504 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 21 Dec 2011 09:17:23 +0000 |
parents | e384d78ff78b |
children | f73036b991e2 |
comparison
equal
deleted
inserted
replaced
2034:7bc9293de4e6 | 2035:3ebbe497d7f7 |
---|---|
368 return null; | 368 return null; |
369 } | 369 } |
370 | 370 |
371 | 371 |
372 /** | 372 /** |
373 * | |
374 * @param nmv A string that represents a named main value. | |
375 * | |
376 * @throws NullPointerException if nmv is null. | |
377 */ | |
378 public static String stripNamedMainValue(String nmv) { | |
379 int startIndex = nmv.indexOf("("); | |
380 int endIndex = nmv.indexOf(")"); | |
381 | |
382 if (startIndex > 0 && endIndex > 0 && startIndex < endIndex) { | |
383 return nmv.substring(0, startIndex); | |
384 } | |
385 | |
386 return nmv; | |
387 } | |
388 | |
389 | |
390 /** | |
373 * Returns the URL of user mapfile for the owner of Artifact | 391 * Returns the URL of user mapfile for the owner of Artifact |
374 * <i>artifactId</i>. | 392 * <i>artifactId</i>. |
375 * | 393 * |
376 * @param artifactId The UUID of an artifact. | 394 * @param artifactId The UUID of an artifact. |
377 * | 395 * |