| Author | Topic |
Posts: 273
Registered: June 2006
|
|
|
Posts: 307
Location: Cambridge UK
Registered: February 2005
|
|
Re: public static Type getTypeFor(String type) in ASTNode
|
02 Aug '11 08:34
|
 |
|
On 08/02/2011 03:53 PM, Andreas Dräger wrote:
> Dear all,
>
> I just noticed the method mentioned above that is actually similar to
> the entries of the XML file ASTNodeTokens.xml in the resources
> directory. Maybe we should complete the tokens file with the other
> entries and then shorten the method in the ASTNode class to use
> Properties to return the desired type. In this way, we could work more
> flexible with types and tokens.
I am not sure we should go this way. At least the file would have to be
more complex than it is at the moment.
ASTNode.Type.getTypeFor is used to recognized mathML names,
ASTNodeTokens.xml is used to read infix formula in the SBML level 1 style.
So you would have to have two keys in the XML files for the two usage as
some names are different.
Also the current file could be use to detect the valid SBML level 1
formula. We could also add an other attribute to say if the entry is
valid in L1 or not.
And as the current system is working quite well, I would prefer that any
changes be done after the long awaited first official stable release
that should come soon, at least before or around COMBINE 2011.
Cheers,
Nico
____________________________________________________________
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
|
|
|