Import (extension point)

From BioUML platform
Revision as of 12:10, 1 July 2013 by Tagir Valeev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Identifier
ru.biosoft.access.import
Plugin
ru.biosoft.access
Since
0.9.0
Registry
DataElementImporterRegistry

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.

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.

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.

See also

Personal tools
Namespaces

Variants
Actions
BioUML platform
Community
Modelling
Analysis & Workflows
Collaborative research
Development
Virtual biology
Wiki
Toolbox