import org.argeo.slc.SlcException;\r
import org.argeo.slc.core.attachment.Attachment;\r
import org.argeo.slc.core.attachment.AttachmentsEnabled;\r
+import org.argeo.slc.core.attachment.SimpleAttachment;\r
import org.argeo.slc.core.structure.tree.TreeSPath;\r
import org.argeo.slc.structure.StructureAware;\r
import org.argeo.slc.structure.StructureElement;\r
\r
private SortedMap<TreeSPath, PartSubList> resultParts = new TreeMap<TreeSPath, PartSubList>();\r
private SortedMap<TreeSPath, StructureElement> elements = new TreeMap<TreeSPath, StructureElement>();\r
- private List<Attachment> attachments = new ArrayList<Attachment>();\r
+ private List<SimpleAttachment> attachments = new ArrayList<SimpleAttachment>();\r
\r
private Map<String, String> attributes = new TreeMap<String, String>();\r
\r
this.warnIfAlreadyClosed = warnIfAlreadyClosed;\r
}\r
\r
- public List<Attachment> getAttachments() {\r
+ public List<SimpleAttachment> getAttachments() {\r
return attachments;\r
}\r
\r
- public void setAttachments(List<Attachment> attachments) {\r
+ public void setAttachments(List<SimpleAttachment> attachments) {\r
this.attachments = attachments;\r
}\r
\r
public void addAttachment(Attachment attachment) {\r
- attachments.add(attachment);\r
+ attachments.add((SimpleAttachment) attachment);\r
synchronized (listeners) {\r
for (TestResultListener<TreeTestResult> listener : listeners) {\r
if (listener instanceof TreeTestResultListener)\r