Wiki source code of Assignment5ClassSheet

Version 4.1 by Kenneth Latimer on 2009/02/04 23:09

Hide last authors
Kenneth Latimer 1.1 1 ## You can modify this page to customize the presentation of your object
2 ## at first you should keep the default presentation.
3 ## Save this template using the save button.
4
5 1 Document $doc.name
6
7 ## Change class name to your class name
Kenneth Latimer 4.1 8 #set($class = $doc.getObject("{CLASSDOC}").xWikiClass)
Kenneth Latimer 1.1 9 #set($hasProps = false)
10 #foreach($prop in $class.properties)
11 #if($velocityCount == 1)
12 #set($hasProps = true)
13 <dl>
14 #end
15 <dt> ${prop.prettyName} </dt>
16 <dd>$doc.display($prop.getName())</dd>
17 #end
18 #if($hasProps)
19 </dl>
20 #end
21