Skip to Navigation | Skip to Content

Ref_impl_Java mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Implementation error?


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