Package org.sbml.jsbml

Examples of org.sbml.jsbml.SBase


   *
   * @see org.sbml.jsbml.util.Filter#accepts(java.lang.Object)
   */
  public boolean accepts(Object o) {
    if (o instanceof SBase) {
      SBase sbase = (SBase) o;
      if (sbase.isSetSBOTerm() && (SBO.isChildOf(sbase.getSBOTerm(), term))) {
        return true;
      }
    }
    return false;
  }
View Full Code Here


      writer.writeNamespace(null, ASTNode.URI_MATHML_DEFINITION)
     
      if (isSBMLNamespaceNeeded) {
        // writing the SBML namespace
        SBMLDocument doc = null;
        SBase sbase = astNode.getParentSBMLObject();
        String sbmlNamespace = SBMLDocument.URI_NAMESPACE_L3V1Core;
       
        if (sbase != null) {
          doc = sbase.getSBMLDocument();
          sbmlNamespace = doc.getSBMLDocumentNamespaces().get("xmlns");         
        }
        writer.writeNamespace("sbml", sbmlNamespace);
      }
     
View Full Code Here

  }
 
 
  public boolean isSBMLNamespaceNeeded(ASTNode astNode) {

    SBase sbase = astNode.getParentSBMLObject();
   
    if (sbase != null && sbase.getLevel() < 3) {
      return false;
    }

    findUnitsCompiler.reset();
   
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.SBase

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.