| 1 | |
package de.glossmaker.bib.datastructure; |
| 2 | |
|
| 3 | |
import de.glossmaker.gloss.datastructure.IItem; |
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
public class Misc extends ABibItem { |
| 25 | |
|
| 26 | |
Misc(String key, EBibTeXReference reference) { |
| 27 | 52 | super(key, reference); |
| 28 | 52 | } |
| 29 | |
|
| 30 | |
public Misc(String key) { |
| 31 | 16 | super(key, EBibTeXReference.MISC); |
| 32 | 16 | } |
| 33 | |
|
| 34 | |
|
| 35 | |
@Override |
| 36 | |
public boolean isItemValid() { |
| 37 | 2 | boolean result = getKey() != null && getKey().length() > 0; |
| 38 | 2 | return result; |
| 39 | |
} |
| 40 | |
|
| 41 | |
@Override |
| 42 | |
public IItem cloneItem() { |
| 43 | 4 | Misc clone = new Misc(getKey()); |
| 44 | 4 | clone.setItemValues(this); |
| 45 | 4 | return clone; |
| 46 | |
} |
| 47 | |
} |