public ValidationCycle () {
}
public ValidationCycle (final Study from, final Properties vprop) throws MissedPropertyException, InvalidPropertyException, MultiplyDefinedException {
- super(vprop); // Throws one of the above exception if not valid
- mytype = vprop.doctype;
- publisher = vprop.publisher; // May be null
- reviewer = vprop.reviewer; // May be null
- approver = vprop.approver; // May be null
- signatory = vprop.signatory; // May be null
- context = new ValidationCycleRelation(from, this);
- }
+ super(vprop); // Throws one of the above exception if not valid
+ mytype = vprop.doctype;
+ publisher = vprop.publisher; // May be null
+ reviewer = vprop.reviewer; // May be null
+ approver = vprop.approver; // May be null
+ signatory = vprop.signatory; // May be null
+ context = new ValidationCycleRelation(from, this);
+ }
+
+ /**
+ * Create a copy of the given cycle for the given study.
+ * @param study the owner study
+ * @param src the original validation cycle
+ */
+ public ValidationCycle (final Study study, final ValidationCycle src) {
+ super(); // Throws one of the above exception if not valid
+ mytype = src.getDocumentType();
+ publisher = src.publisher; // May be null
+ reviewer = src.reviewer; // May be null
+ approver = src.approver; // May be null
+ signatory = src.signatory; // May be null
+ context = new ValidationCycleRelation(study, this);
+ }
// ==============================================================================================================================
// Public member functions