temp. fixed: "Attempt to read a single element when there is more than one present" #949
Will be overwritten by next RI import!
This commit is contained in:
parent
07d0cc7876
commit
4d8608e721
|
@ -3621,7 +3621,8 @@ public class InstanceValidator extends BaseValidator implements IResourceValidat
|
||||||
// all observations should have a subject, a performer, and a time
|
// all observations should have a subject, a performer, and a time
|
||||||
|
|
||||||
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), element.getNamedChild("subject") != null, "All observations should have a subject");
|
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), element.getNamedChild("subject") != null, "All observations should have a subject");
|
||||||
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), element.getNamedChild("performer") != null, "All observations should have a performer");
|
List<Element> performer = new ArrayList();element.getNamedChildren("performer", performer);
|
||||||
|
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), !performer.isEmpty(), "All observations should have a performer");
|
||||||
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), element.getNamedChild("effectiveDateTime") != null || element.getNamedChild("effectivePeriod") != null,
|
bpCheck(errors, IssueType.INVALID, element.line(), element.col(), stack.getLiteralPath(), element.getNamedChild("effectiveDateTime") != null || element.getNamedChild("effectivePeriod") != null,
|
||||||
"All observations should have an effectiveDateTime or an effectivePeriod");
|
"All observations should have an effectiveDateTime or an effectivePeriod");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue