Clover coverage report - Maven Clover report
Coverage timestamp: Sun Mar 18 2007 17:43:17 CET
file stats: LOC: 47   Methods: 8
NCLOC: 36   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
SourceModelImpl.java - 100% 100% 100%
coverage
 1    package com.agical.rdoc.core.model.impl;
 2   
 3    import java.util.HashMap;
 4    import java.util.Map;
 5   
 6    import com.agical.rdoc.core.model.CodeBlock;
 7    import com.agical.rdoc.core.model.SourceModel;
 8   
 9    public class SourceModelImpl implements SourceModel {
 10    private static final long serialVersionUID = 1L;
 11    private StringBuffer documentation = new StringBuffer();
 12    private Map methods = new HashMap();
 13    private final Map methodDocumentation = new HashMap();
 14    private final String name;
 15   
 16  20 public SourceModelImpl(String name) {
 17  20 this.name = name;
 18    }
 19   
 20  154 public void addMethod(String name, CodeBlock codeBlock) {
 21  154 methods.put(name, codeBlock);
 22    }
 23   
 24  13 public CodeBlock getMethod(String name) {
 25  13 return (CodeBlock) methods.get(name);
 26    }
 27   
 28  2 public String getName() {
 29  2 return name;
 30    }
 31   
 32  13 public String getMethodDocumentation(String method) {
 33  13 return (String) methodDocumentation.get(method);
 34    }
 35   
 36  154 public void addMethodDocumentation(String name, String documentation) {
 37  154 methodDocumentation.put(name, documentation);
 38    }
 39   
 40  1 public void addDocumentation(String documentation) {
 41  1 this.documentation.append(documentation);
 42    }
 43   
 44  1 public String getDocumentation() {
 45  1 return documentation.toString();
 46    }
 47    }