java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.sbml.SBML_SBase_Reader
Direct Known Subclasses:
SBML_Constraint_Reader, SBML_Event_Reader, SBML_Model_Reader, SBML_SBML_Reader

public class SBML_SBase_Reader
extends Object
  • Field Details

    • ATT

      public static final String ATT
      To make the code shorter
    • namespaceCollector

      public static HashMap<String,​String> namespaceCollector
      Stores the namespaces which already has been added to the graph tab
  • Constructor Details

    • SBML_SBase_Reader

      public SBML_SBase_Reader()
  • Method Details

    • removeTagFromString

      public static String removeTagFromString​(String xhtml)
      This method processes an string with xhtml content
      Parameters:
      xhtml -
      Returns:
    • getNiceHeadline

      public String getNiceHeadline​(String presentedHeadline)
      Method transforms an presented headline into an intern headline
      Parameters:
      presentedHeadline - is visible for the user
      Returns:
    • addNotes

      public void addNotes​(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Edge e, String path, String notesName)
    • addNotes

      public void addNotes​(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Graph g, String path, String notesName)
      This method adds notes to the current object in the graph tab
      Parameters:
      notesObject - contains the notes in XML Node form
      notesString - contains the notes as a String
      g - is the data structure for reading in the information
      path - intern representation where to add the notes
      notesName - contains the presented headline and the presented attribute name
    • addNotes

      public void addNotes​(org.sbml.jsbml.xml.XMLNode notesObject, String notesString, Node node, String path, String notesName)
      This method adds notes to the current object in the node tab
      Parameters:
      notesObject - contains the notes in XML Node form
      notesString - contains the notes as a String
      node - is the data structure for reading in the information
      path - intern representation where to add the notes
      notesName - contains the presented headline and the presented attribute name
    • setAttributes

      public void setAttributes​(Node node, Color color, String label, Point2D point, int size_multiplier)
      Method helps to set Attributes Creates nodes with 20, 20 height/width
      Parameters:
      node - the current node
      color - the aimed color
      label - label of the node
      point - coordinates of the node
      size_multiplier - determines the size of the node
    • addNamespaces

      public static void addNamespaces​(org.sbml.jsbml.xml.XMLNode node, Graph g, String path, String attribute)
      Adds the namespaces of an XMLNode to the graph tab
      Parameters:
      node - contains the namespaces
      g - the graph that should be imported
    • addNamespaces

      public void addNamespaces​(Map<String,​String> namespaces, Graph g, String path, String attribute)
      Adds a map of namespaces (namespace, URL) to the graph tab.
      Parameters:
      namespaces - contains the namespaces and the URLs
      g - the graph that should be imported