Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/StackFrames.java @ 6083:a596ddb42fb3
Return an empty string for the NULL object.
This makes it "disappear" if it is used as part of a
description or info string
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 24 May 2013 09:23:35 +0200 |
parents | af13ceeba52a |
children | 03201eaf594f |
comparison
equal
deleted
inserted
replaced
6082:806fa23dffb3 | 6083:a596ddb42fb3 |
---|---|
29 public class StackFrames | 29 public class StackFrames |
30 implements XPathVariableResolver | 30 implements XPathVariableResolver |
31 { | 31 { |
32 private static Logger log = Logger.getLogger(StackFrames.class); | 32 private static Logger log = Logger.getLogger(StackFrames.class); |
33 | 33 |
34 public static final Object NULL = new Object(); | 34 public static final Object NULL = new Object() { |
35 @Override | |
36 public String toString() { | |
37 return ""; | |
38 } | |
39 }; | |
35 | 40 |
36 /** The frames (used like a stack). */ | 41 /** The frames (used like a stack). */ |
37 protected List<Map<String, Object>> frames; | 42 protected List<Map<String, Object>> frames; |
38 | 43 |
39 public StackFrames() { | 44 public StackFrames() { |