de.armax.ax.devtools.uml.mdr
Class AXmodelReaderMdr

java.lang.Object
  extended byde.armax.ax.devtools.uml.mdr.AXmodelReaderMdr

public class AXmodelReaderMdr
extends java.lang.Object

Helper class to read XMI into MDR repository.

By default, the repository file will be "build/tmp/repository". You may change this by placing "mdr.properties" in the root of the classpath containing the repository file as value of the key "repository.file".

Author:
Peter Wieland, ARMAX mindware GmbH

Method Summary
 void dispose()
           
 java.util.Collection getAbstractions()
           
 java.util.Collection getAssociations()
           
 java.util.Collection getDependencies()
           
 java.util.Collection getGeneralizations()
           
static AXmodelReaderMdr getInstance(java.io.InputStream xmiStream)
          Create an instance that reads an XMI from an intput stream.
static AXmodelReaderMdr getInstance(java.lang.String xmiFile)
          Create an instance that reads an XMI from a file.
 org.omg.uml.modelmanagement.Model getModelPackage()
           
 java.util.Collection getPackages()
           
 java.util.Collection getTaggedValues()
           
 void init()
           
 void readXmi()
          Reads the XMI into the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AXmodelReaderMdr getInstance(java.lang.String xmiFile)
                                    throws AXmodelException

Create an instance that reads an XMI from a file.

Parameters:
xmiFile -
Throws:
AXmodelException

getInstance

public static AXmodelReaderMdr getInstance(java.io.InputStream xmiStream)
                                    throws AXmodelException

Create an instance that reads an XMI from an intput stream.

Parameters:
xmiStream -
Throws:
AXmodelException

init

public void init()
          throws AXmodelException
Throws:
AXmodelException

readXmi

public void readXmi()
             throws java.io.FileNotFoundException,
                    AXmodelException

Reads the XMI into the repository. The XMI is read from either an input stream or an URI.

Throws:
java.io.FileNotFoundException
AXmodelException

getModelPackage

public org.omg.uml.modelmanagement.Model getModelPackage()

getPackages

public java.util.Collection getPackages()

getTaggedValues

public java.util.Collection getTaggedValues()

getAssociations

public java.util.Collection getAssociations()

getGeneralizations

public java.util.Collection getGeneralizations()

getDependencies

public java.util.Collection getDependencies()

getAbstractions

public java.util.Collection getAbstractions()

dispose

public void dispose()


Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.