biouml.plugins.sbml
Class SbmlImporter

java.lang.Object
  extended bybiouml.plugins.sbml.SbmlImporter
All Implemented Interfaces:
DiagramImporter

public class SbmlImporter
extends java.lang.Object
implements DiagramImporter


Field Summary
protected static org.apache.log4j.Category log
           
 
Constructor Summary
SbmlImporter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the specified file can be imported.
 void doImport(Module module, java.io.File file, java.lang.String diagramName)
          Imports diagram from the spcified file into the specified module.
protected  int getAttrValue(java.lang.String str, java.lang.String attr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Category log
Constructor Detail

SbmlImporter

public SbmlImporter()
Method Detail

accept

public boolean accept(java.io.File file)
Description copied from interface: DiagramImporter
Returns true if the specified file can be imported.

Specified by:
accept in interface DiagramImporter
Parameters:
file - - file with data that will be imported to the diagram

getAttrValue

protected int getAttrValue(java.lang.String str,
                           java.lang.String attr)

doImport

public void doImport(Module module,
                     java.io.File file,
                     java.lang.String diagramName)
              throws java.lang.Exception
Description copied from interface: DiagramImporter
Imports diagram from the spcified file into the specified module.

Specified by:
doImport in interface DiagramImporter
Parameters:
module - - module where the imported diagram will be located
file - - data file to be impored (for example file with SBML or CellML model)
diagramName - - name of the diagram in the module.
Throws:
java.lang.Exception
To do:
Play with diagramName and diagram.getName() - there is something bad, Implement clone() method of EModel


Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.