Difference between revisions of "Import (extension point)"
From BioUML platform
Tagir Valeev (Talk | contribs) (Created page with "{{Extension point|import|ru.biosoft.access|since=0.9.0|registry=ru.biosoft.access.DataElementImporterRegistry}} === Description === Using this extension point you can provide ...") |
Latest revision as of 12:10, 1 July 2013
- Identifier
- ru.biosoft.access.import
- Plugin
- ru.biosoft.access
- Since
- 0.9.0
- Registry
DataElementImporterRegistry
[edit] Description
Using this extension point you can provide an importer to import user-supplied file as BioUML data element. Each importer must be able to check the provided file and return an acceptance level. Importers with ACCEPT_UNSUPPORTED
level are excluded from the importers list for given file. Other importers are sorted by acceptance level. Importer with highest acceptance level is considered to be default importer for this file. See DataElementImporter
interface for more details.
Import element dialog in BioUML workbench.
Import element dialog in BioUML web edition.
[edit] Configuration markup
<!ELEMENT import> <!ATTLIST import format CDATA #REQUIRED importer CDATA #REQUIRED description CDATA >
- format
- Human-readable file format name
- importer
- Fully-qualified name of importer class (must implement
DataElementImporter
interface). - description
- Either text importer description or plugin-relative path to HTML file describing the importer in details.
[edit] Example
<extension id="Import zip-archive" point="ru.biosoft.access.import"> <import format="ZIP-archive (*.zip)" importer="ru.biosoft.access.ZipFileImporter" description="ru/biosoft/access/resources/ZIPFormat.html" /> </extension>
This extension registers a ZIP files importer implemented in the ZipFileImporter
class.