Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » http://jsbml.svn.sourceforge.net/viewvc/jsbml/trunk/src/org/sbml/jsbml/AbstractMathContainer.java?r1
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
rodrigue


Posts: 307
Location:
Cambridge UK
Registered:
February 2005
http://jsbml.svn.sourceforge.net/viewvc/jsbml/trunk/src/org/sbml/jsbml/AbstractMathContainer.java?r1 23 Nov '10 03:57 Go to previous message

http://jsbml.svn.sourceforge.net/viewvc/jsbml/trunk/src/org/sbml/jsbml/AbstractMathContainer.java?r1=444&r2=443&pathrev=444
> --- trunk/src/org/sbml/jsbml/AbstractMathContainer.java 2010/11/22
> 14:00:58 443
> +++ trunk/src/org/sbml/jsbml/AbstractMathContainer.java 2010/11/22
> 17:29:51 444
> @@ -290,10 +290,10 @@
> value);
>
> if (!isAttributeRead) {
> - if (attributeName.equals("formula") && isSetLevel()
> - && (getLevel() < 2)) {
> + if (attributeName.equals("formula")) {
> try {
> setFormula(value);
> + return true;
> } catch (ParseException exc) {
> throw new IllegalArgumentException(exc);
> }
> @@ -309,6 +309,9 @@
> */
> @Deprecated
> public void setFormula(String formula) throws ParseException {
> + if (1 < getLevel()) {
> + throw new
> PropertyNotAvailableError(SBaseChangedEvent.formula, this);
> + }
> setMath(ASTNode.parseFormula(formula));
> }
I found this test a bit too restrictive. Software allowing user to enter
math expression as infix formula could use this method to set the math
whatever the level and version ?

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

      

SubjectPosterDate
Read Message   http://jsbml.svn.sourceforge.net/viewvc/jsbml/trun...  rodrigue23 Nov '10 03:57
Read Message   Re: http://jsbml.svn.sourceforge.net/viewvc/jsbml/... Andreas Dräger23 Nov '10 04:36
Read Message   Re: http://jsbml.svn.sourceforge.net/viewvc/jsbml/... rodrigue23 Nov '10 06:19
Read Message   Re: http://jsbml.svn.sourceforge.net/viewvc/jsbml/... Andreas Dräger23 Nov '10 09:21
Read Message   Re: http://jsbml.svn.sourceforge.net/viewvc/jsbml/... rodrigue24 Nov '10 02:55
Previous Topic:setting automatically an SBO term for time
Next Topic:http://jsbml.svn.sourceforge.net/viewvc/jsbml/trunk/src/org/sbml/jsbml/Event.java?r1=444&r2=443&
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.