Bug in CObject.isRequired() method?
public boolean isRequired() {
if (occurrences == null) { // default {1..1} // occurrences parsed from ADL parser is not null
return true;
}
if (occurrences.getLower() != null && occurrences.getLower() > 0
&& occurrences.getUpper() != null
&& occurrences.getLower() < occurrences.getUpper()) { // 1 < 1 is false
return true;
}
return false; // {0..N} // false is return!
}
_______________________________________________ Ref_impl_java mailing list Ref_impl_java@openehr.org http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java