1 package ca.uhn.hl7v2.testpanel.model;
2
3 import java.util.Arrays;
4 import java.util.Date;
5 import java.util.List;
6
7 import ca.uhn.hl7v2.HL7Exception;
8
9 public class ActivityValidationOutcome extends ActivityBase {
10
11 private HL7Exception[] myIssues;
12
13 public ActivityValidationOutcome(Date theTimestamp, HL7Exception... theIssues) {
14 super(theTimestamp);
15
16 myIssues = theIssues != null ? theIssues : new HL7Exception[0];
17 }
18
19
20
21
22 public boolean isValidated() {
23 return myIssues.length == 0;
24 }
25
26
27
28
29 public List<HL7Exception> getIssues() {
30 return Arrays.asList(myIssues);
31 }
32
33 }