Dear Saran,
not sure I understand you correctly.
If links is null, the exception would not be thrown.
Only if links is not null but is empty an exception is thrown, which I
think is correct?
Cheers,
Sebastian
Saran Kong wrote:
Dear Rong,
In Locatable class constructor, "links" must not be null or empty,
otherwise error will be triggered.
if (links != null && links.isEmpty()) {
throw new IllegalArgumentException("empty links");
}
However, in Locatable subclasses such as Party, Actor, Person, etc.,
"links" can be null if not
specified.
It is also stated in the specification that links will
have the optionality of "0...1".
Is it an error or is intended?
Cheers,
--
Kong SARAN
Information and Communication Technology
Kano Lab
Waseda University, Japan
_______________________________________________
Ref_impl_java mailing list
Ref_impl_java@openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_java
|