| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AThesis |
|
| 2.3333333333333335;2,333 |
| 1 | package de.glossmaker.bib.datastructure; | |
| 2 | ||
| 3 | /** | |
| 4 | * | |
| 5 | * @author Markus Flingelli | |
| 6 | * | |
| 7 | */ | |
| 8 | abstract class AThesis extends ABibItem { | |
| 9 | ||
| 10 | AThesis(String key, EBibTeXReference reference) { | |
| 11 | 100 | super(key, reference); |
| 12 | 100 | } |
| 13 | ||
| 14 | public AThesis(String key, EBibTeXReference reference, String title, String author, String school, String year) { | |
| 15 | 6 | super(key, reference); |
| 16 | 6 | setTitle(title); |
| 17 | 6 | setAuthor(author); |
| 18 | 6 | setSchool(school); |
| 19 | 6 | setYear(year); |
| 20 | 6 | } |
| 21 | ||
| 22 | ||
| 23 | @Override | |
| 24 | public boolean isItemValid() { | |
| 25 | 12 | boolean result = getKey() != null && getKey().length() > 0; |
| 26 | 12 | result &= getAuthor() != null && getAuthor().length() > 0; |
| 27 | 12 | result &= getTitle() != null && getTitle().length() > 0; |
| 28 | 12 | result &= getSchool() != null && getSchool().length() > 0; |
| 29 | 12 | result &= getYear() != null; |
| 30 | 12 | return result; |
| 31 | } | |
| 32 | } |