public void run(ErrorRecorder er) { new ObjectStructureValidator(m, vc, rvi).run(er); new CodeValidation(m, vc, er).run(); new SubmissionStructure(m, rvi).run(er, vc); }
boolean has_ss_hasmember_assoc(String target) { if (find_ss_hasmember_assoc(target) == null) return false; return true; }
boolean has_assoc(String source, String type, String target) { if (find_assoc(source, type, target) == null) return false; return true; }
public void runCodeValidation(ErrorRecorder er) { new CodeValidation(m, vc, er).run(); }
public void setValidationContext(ValidationContext vc) throws XdsInternalException { this.vc = vc; loadCodes(); }
boolean has_sss_slot(OMElement assoc) { return get_sss_slot(assoc) != null; }
String objectDescription(String id) { return objectType(id) + "(" + id + ")"; }
public void run() { if (runable) run(er); }
public void run(ErrorRecorder er, ValidationContext vc) { submission_structure(er, vc); }
boolean submissionContains(String id) { return getObjectById(id) != null; }
String objectDescription(String id) { return objectType(id) + "(" + id + ")"; }
boolean isMemberOfSS(String id) { String ssid = m.getSubmissionSetId(); return haveAssoc("HasMember", ssid, id); }
String objectDescription(OMElement ele) { return objectDescription(m.getId(ele)); }
public CodeValidation(Metadata m, ValidationContext vc, ErrorRecorder er) { super(); this.m = m; this.er = er; is_submit = true; xds_b = true; try { setValidationContext(vc); } catch (XdsInternalException e) { er.err(XdsErrorCode.Code.XDSRegistryError, e); runable = false; } }
String docEntryDescription(OMElement obj) { return docEntryDescription(m.getId(obj)); }
String folderDescription(OMElement obj) { return folderDescription(m.getId(obj)); }
String assocDescription(OMElement obj) { return assocDescription(m.getId(obj)); }
CodeValidationBase(int ignore) throws XdsInternalException { loadCodes(); }
OMElement find_ss_hasmember_assoc(String target) { return find_assoc(m.getSubmissionSetId(), "HasMember", target); }
public List<String> getAssigningAuthorities() { try { loadCodes(); } catch (Exception e) { System.out.println("loading codes: " + e.getMessage()); } return assigning_authorities; }