1 23 24 package org.hammurapi.render.dom; 25 26 import org.hammurapi.results.NamedResults; 27 import org.w3c.dom.Document ; 28 import org.w3c.dom.Element ; 29 30 import com.pavelvlasov.render.RenderRequest; 31 import com.pavelvlasov.render.RenderingException; 32 33 38 public class NamedResultsRenderer extends AggregatedResultsRenderer { 39 40 41 public NamedResultsRenderer(RenderRequest request) { 42 super(request); 43 } 44 45 public NamedResultsRenderer(RenderRequest request, String profile) { 46 super(request, profile); 47 } 48 49 public Element render(Document document) throws RenderingException { 50 Element ret=super.render(document); 51 ret.setAttribute("name", ((NamedResults) request.getRenderee()).getName()); 52 return ret; 53 } 54 } 55 | Popular Tags |