void all_docs_linked_to_ss(ErrorRecorder er, ValidationContext vc) {
List<OMElement> docs = m.getExtrinsicObjects();
for (int i=0; i<docs.size(); i++) {
OMElement doc = (OMElement) docs.get(i);
OMElement assoc = find_assoc(m.getSubmissionSetId(), assoc_type("HasMember"), doc.getAttributeValue(MetadataSupport.id_qname));
if ( assoc == null) {
er.err(XdsErrorCode.Code.XDSRegistryMetadataError, "DocumentEntry(" +
doc.getAttributeValue(MetadataSupport.id_qname) +
") is not linked to the SubmissionSet with a " + assoc_type("HasMember") + " Association",
this, "ITI TF-3: 4.1.4.1");
} else {
if (!has_sss_slot(assoc)) {
er.err(XdsErrorCode.Code.XDSRegistryMetadataError, assocDescription(assoc) +
": links a DocumentEntry to the SubmissionSet but does not have a " +
"SubmissionSetStatus Slot with value Original",
this, "ITI TF-3: 4.1.4.1");
hasmember_error = true;
} else if (!is_sss_original(assoc)) {
er.err(XdsErrorCode.Code.XDSRegistryMetadataError, assocDescription(assoc) +
": links a DocumentEntry to the SubmissionSet but does not have a " +
"SubmissionSetStatus Slot with value Original",
this, "ITI TF-3: 4.1.4.1");
hasmember_error = true;
}
}
}
}