biouml.workbench.diagram
Class DiagramImporterRegistry
- public class DiagramImporterRegistry
AUTODETECT
public final static String AUTODETECT
DESCRIPTION
public final static String DESCRIPTION
FORMAT
public final static String FORMAT
IMPORT
public final static String IMPORT
IMPORTER_CLASS
public final static String IMPORTER_CLASS
getAutoDetectImporter
public static DiagramImporter[] getAutoDetectImporter(File file)
getImporter
public static DiagramImporter getImporter(File file, String format)
- Returns suitable importer for the specified file and format.
- Parameters:
- file - - diagram file to be imported
- format - - format name. If format equals
autodetect,
then registry checks all possible importers and returns first that can accept this format.
Otherwise it checks only importers that are registered for this format. - returns most suitable importer for this file or null if suitable importer is not found.
- pending possibly Importer should return not boolean, but integer
that indicates sutability of the importer for the specified format., who should pring in log detected format and importer name - registry or importer?
getRegistry
public static HashMap getRegistry()
to Class java.lang.String
to Class org.apache.log4j.Category
to Class java.util.HashMap
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
BOTTOM