no.sintef.umt
Class XmiReader

java.lang.Object
  extended byno.sintef.umt.XmiReader

public final class XmiReader
extends java.lang.Object

Reads XMI from XML or zuml/zargo files (Poseidon/ArgoUML).

Author:
Fredrik Vraalsen

Method Summary
static org.w3c.dom.Document getZumlZargoXmi(java.io.InputStream is)
           
static org.w3c.dom.Document readXmi(java.io.File srcFile)
          Reads XMI from XML or zuml/zargo files (Poseidon/ArgoUML) and return as XML Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readXmi

public static org.w3c.dom.Document readXmi(java.io.File srcFile)
                                    throws no.sintef.xml.XmlException,
                                           java.io.IOException
Reads XMI from XML or zuml/zargo files (Poseidon/ArgoUML) and return as XML Document.

Parameters:
srcFile - the file to read from
Returns:
the XMI Document
Throws:
no.sintef.xml.XmlException - if error parsing XMI
java.io.IOException - if IO error occurs, or zargo/zuml file does not contain XMI

getZumlZargoXmi

public static org.w3c.dom.Document getZumlZargoXmi(java.io.InputStream is)
                                            throws no.sintef.xml.XmlException,
                                                   java.io.IOException
Throws:
no.sintef.xml.XmlException
java.io.IOException


Copyright © 2003-2005 SINTEF. All Rights Reserved.