The test isSetPlugin on AbstractSBase should return true if the SBase has a child with the given namespace. In the current implementation, however, it returns true if JSBML has (at some point) loaded a parser for parsing that namespace.
For example, if a model has an FBC extension in package version 1, JSBML will return true when asking model.isSetPlugin with the namespace of FBC package version 2 as argument. For testing, the model 01190 from the SBML test suite can be used.
The desired behavior of this method (and the corresponding method hasExtension) is that it should only return true if an extension with the given namespace exists.
The test
isSetPluginonAbstractSBaseshould returntrueif theSBasehas a child with the given namespace. In the current implementation, however, it returnstrueif JSBML has (at some point) loaded a parser for parsing that namespace.For example, if a model has an FBC extension in package version 1, JSBML will return
truewhen askingmodel.isSetPluginwith the namespace of FBC package version 2 as argument. For testing, the model 01190 from the SBML test suite can be used.The desired behavior of this method (and the corresponding method
hasExtension) is that it should only returntrueif an extension with the given namespace exists.