| Author | Topic |
Posts: 961
Registered: October 2003
|
|
Re: Constructors in extension elements
|
11 Apr '12 15:47

|
 |
|
On Tue, 10 Apr 2012 12:12:12 +0200, Andreas Dräger wrote:
> Is there already a general rule which constructors are required when
> implementing extension elements?
> It seems there should there always be an empty constructor and one that
> takes the usual arguments Level and Version. But how about the package
> version?
If this doesn't exist already, there should be common guidelines for every extension -- i.e., rules that say there should always be a constructor, always be methods X, Y, and Z, etc. All extensions should follow a minimum interface set.
> Should constructors of package elements throw an exception when trying
> to initialize them with Level Version combinations before 3.1 (but with
> a defined LV, i.e., other than -1.-1)?
This makes sense to me. It could be a IllegalArgumentException.
MH
____________________________________________________________
To manage your jsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/jsbml-development
For a web interface to the jsbml-development mailing list, visit
http://sbml.org/Forums/
For questions or feedback about the jsbml-development list,
contact sbml-team@caltech.edu
|
|
|