[stringtemplate-interest] Use case supported by ST?
Ronald Muller
ronald.k.muller at gmail.com
Wed Feb 3 02:05:14 PST 2010
Hi,
I have the following use case:
I have to list items and display "Yes" or "No" if they are present in a set
(Checklist items in my case, modeled as enums), So:
Task1: Yes
Task2: No
Task3: No
...
My domain class has:
public Set getChecklist() { .. }
The only solution I see is to add an extra method in my domain class:
public Map<String, Boolean> getChecklistItems() { ... }
and do:
$object.checklistItems.keys:{k|
$k$: $object.checklistItems.(k)$\n
}$
Is there a simpler solution without modifying my domain class?
Regards,
Ronald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20100203/b7c65b6b/attachment.html
More information about the stringtemplate-interest
mailing list