org.argouml.uml.reveng
Class ImporterManager
java.lang.Object
org.argouml.uml.reveng.ImporterManager
public final class ImporterManager
- extends java.lang.Object
Keeps an instance of each ImportInterface implementation module registered.
ImporterManager is a singleton.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ImporterManager getInstance()
- Returns:
- The singleton instance of the importer manager.
addImporter
public void addImporter(ImportInterface importer)
- Register a new source language importer.
- Parameters:
importer
- The ImportInterface object to register.
removeImporter
public boolean removeImporter(ImportInterface importer)
- Removes a importer.
- Parameters:
importer
- the importer to be removed
- Returns:
- false if no matching importer had been registered
getImporters
public java.util.Set<ImportInterface> getImporters()
- Returns:
- A copy of the set of importers.
hasImporters
public boolean hasImporters()
- Returns:
- true, if at least one importer exists.