uk.ac.ebi.intact.application.graph2MIF.conversion
Class Graph2FoldedMIF

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.graph2MIF.conversion.Graph2FoldedMIF

public class Graph2FoldedMIF
extends java.lang.Object

This class gives IntAct the possibillity to give out a graph to MIF-PSI-Format in XML. see http://psidev.sf.net for details

Version:
$Id: Graph2FoldedMIF.java,v 1.4 2004/03/24 11:46:22 skerrien Exp $
Author:
Henning Mersch (hmersch@ebi.ac.uk), Samuel Kerrien (skerrien@ebi.ac.uk)

Constructor Summary
Graph2FoldedMIF()
          Contructor without parameter - strict MIF will be produced or Exception will be thrown
Graph2FoldedMIF(java.lang.Boolean strictmif)
          Contructor with parameter
 
Method Summary
 org.w3c.dom.Document getMIF(Graph graph)
          The only public function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph2FoldedMIF

public Graph2FoldedMIF()
Contructor without parameter - strict MIF will be produced or Exception will be thrown


Graph2FoldedMIF

public Graph2FoldedMIF(java.lang.Boolean strictmif)
Contructor with parameter

Parameters:
strictmif - defines wether MIF should be strict produced or not.
Method Detail

getMIF

public org.w3c.dom.Document getMIF(Graph graph)
                            throws GraphNotConvertableException
The only public function. Calling this with a Graph object will give you a complete DOM object according to PSI MIF specification, which you can easily can print out.

Parameters:
graph - to convert to PSI-Format
Returns:
DOM-Object, representing a XML Document in PSI-Format
Throws:
GraphNotConvertableException - if PSIrequired Elements are missing within graph


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk