Skip to content

The test if a plugin is loaded returns true when JSBML has a parser loaded #216

@draeger

Description

@draeger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions