NIHVIVO-2479 Small improvements to dump output

This commit is contained in:
ryounes 2011-04-22 20:27:55 +00:00
parent 8f0b6f7b01
commit 0926e5cc30
6 changed files with 39 additions and 17 deletions

View file

@ -49,10 +49,15 @@ public class PropertyGroupTemplateModel extends BaseTemplateModel {
properties.remove(ptm);
}
/* Freemarker doesn't consider this a getter, because it takes a parameter, so to call it as group.name
* in the templates the method name must be simply "name" and not "getName."
*/
public String name(String otherGroupName) {
/* Accessor methods for templates */
// Add this so it's included in dumps for debugging. The templates will want to display
// name using getName(String)
public String getName() {
return name;
}
public String getName(String otherGroupName) {
String displayName = name;
if (displayName == null) {
displayName = "";