Package org.sbml.jsbml

Examples of org.sbml.jsbml.SBMLException


  /* (non-Javadoc)
   * @see org.sbml.jsbml.util.compilers.ASTNodeCompiler#unknownValue()
   */
  public ASTNodeValue unknownValue() throws SBMLException {
    throw new SBMLException(
        "cannot write unknown syntax tree nodes to a formula String");
  }
View Full Code Here


              MathMLParser.getXMLnamespaceSBML());
        } else {
          // TODO: We could just remove all references to units
          // instead of throwing this exception. What is better? Loss
          // of information or exception?
          throw new SBMLException(
              "math element contains numbers that refer to unit definitions and therefore requires at least SBML Level 3");
        }
      }
      document.appendChild(math);
    } else {
View Full Code Here

  /* (non-Javadoc)
   * @see org.sbml.jsbml.util.compilers.ASTNodeCompiler#unknownValue()
   */
  public ASTNodeValue unknownValue() throws SBMLException {
    throw new SBMLException(
        "cannot write unknown syntax tree nodes to a MathML document");
  }
View Full Code Here

   */
  public ASTNodeValue compile(double mantissa, int exponent, String units) {

    if ((units != null) && (units.length() > 0)) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

   */
  public ASTNodeValue compile(double real, String units) {

    if ((units != null) && (units.length() > 0)) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

   */
  public ASTNodeValue compile(int integer, String units) {

    if ((units != null) && (units.length() > 0)) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

   */
  public ASTNodeValue compile(double mantissa, int exponent, String units) {

    if (units != null && units.length() > 0) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

   */
  public ASTNodeValue compile(double real, String units) {

    if (units != null && units.length() > 0) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

   */
  public ASTNodeValue compile(int integer, String units) {

    if (units != null && units.length() > 0) {
      isUnitsDefined  = true;
      throw new SBMLException("Stopping the recursion, a units has been found and the SBML namespace is needed.");
    }
   
    return dummyValue;
  }
View Full Code Here

              MathMLParser.getXMLnamespaceSBML());
        } else {
          // TODO: We could just remove all references to units
          // instead of throwing this exception. What is better? Loss
          // of information or exception?
          throw new SBMLException(
              "math element contains numbers that refer to unit definitions and therefore requires at least SBML Level 3");
        }
      }
      document.appendChild(math);
    } else {
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.SBMLException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.