|
|||||||||||||||||||
| This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| TestInfo.java | - | 83,3% | 85,7% | 84,6% |
|
||||||||||||||
| 1 |
/* |
|
| 2 |
* JBind |
|
| 3 |
* |
|
| 4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
| 5 |
* |
|
| 6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
| 7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
| 8 |
* 'Apache Software License V 1.1'. |
|
| 9 |
*/ |
|
| 10 |
package org.jbind.xml.test; |
|
| 11 |
|
|
| 12 |
import java.util.ArrayList; |
|
| 13 |
import java.util.HashMap; |
|
| 14 |
import java.util.Iterator; |
|
| 15 |
import java.util.List; |
|
| 16 |
import java.util.Map; |
|
| 17 |
import java.util.Set; |
|
| 18 |
|
|
| 19 |
public class TestInfo implements IHasErrorMessages {
|
|
| 20 |
|
|
| 21 |
public Map myAttributes = new HashMap(); |
|
| 22 |
public List errorMessages = new ArrayList(); |
|
| 23 |
|
|
| 24 | 58 |
public TestInfo() {}
|
| 25 |
|
|
| 26 | 2 |
public void setAttribute(String aKey, String aValue) {
|
| 27 | 2 |
myAttributes.put(aKey, aValue); |
| 28 |
} |
|
| 29 |
|
|
| 30 | 2 |
public String getAttribute(String aKey) {
|
| 31 | 2 |
return (String)myAttributes.get(aKey); |
| 32 |
} |
|
| 33 |
|
|
| 34 | 29 |
public void add(ErrorMessageInfo anErrorMessageInfo) {
|
| 35 | 29 |
errorMessages.add(anErrorMessageInfo); |
| 36 |
} |
|
| 37 |
|
|
| 38 | 55 |
public Iterator iterErrorMessageInfos() {
|
| 39 | 55 |
return errorMessages.iterator(); |
| 40 |
} |
|
| 41 |
|
|
| 42 | 0 |
public int getNbErrorMessageInfos() {
|
| 43 | 0 |
return errorMessages.size(); |
| 44 |
} |
|
| 45 |
|
|
| 46 | 1 |
public Set getAttributeKeys() {
|
| 47 | 1 |
return myAttributes.keySet(); |
| 48 |
} |
|
| 49 |
} |
|
| 50 |
|
|
||||||||||