Package org.sbml.jsbml.ext.comp

Examples of org.sbml.jsbml.ext.comp.CompSBasePlugin


    // If not other elements recognized the new element to read, it might be
    // on of the extended SBase children
    if (contextObject instanceof SBase)
    {
      SBase sbase = (SBase) contextObject;
      CompSBasePlugin compSBase = null;

      if (sbase.getExtension(namespaceURI) != null) {
        compSBase = (CompSBasePlugin) sbase.getExtension(namespaceURI);
      } else {
        compSBase = new CompSBasePlugin(sbase);
        sbase.addExtension(namespaceURI, compSBase);
      }

      if (elementName.equals(CompConstants.listOfReplacedElements))
      {
        return compSBase.getListOfReplacedElements();
      }
      else if (elementName.equals(CompConstants.replacedBy))
      {
        return compSBase.createReplacedBy();
      }
    }


    return contextObject;
View Full Code Here


      if (sbase instanceof Model) {
        return new CompModelPlugin((Model) sbase);
      } else if (sbase instanceof SBMLDocument) {
        return new CompSBMLDocumentPlugin((SBMLDocument) sbase);
      } else {
        return new CompSBasePlugin(sbase);
      }
    }

    return null;
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.ext.comp.CompSBasePlugin

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.