MetaDone
metadone.client.functions.importer.Importer Interface Reference
Inheritance diagram for metadone.client.functions.importer.Importer:

List of all members.

Classes

class  AbstractImporter

Public Member Functions

String getMetamodelName (String ext) throws BadPreCondition
MetaModel getMetamodel (String ext) throws BadPreCondition
ConcreteModel createConcreteModel (String ext, String source) throws BadPreCondition, IOException
ConcreteModel createConcreteModel (String ext, InputStream input) throws BadPreCondition, IOException

Detailed Description

Imports models from various sources.

Supports generating different models by extension of the file (the type of the file).

Author:
kma

Member Function Documentation

ConcreteModel metadone.client.functions.importer.Importer.createConcreteModel ( String  ext,
String  source 
) throws BadPreCondition, IOException
ConcreteModel metadone.client.functions.importer.Importer.createConcreteModel ( String  ext,
InputStream  input 
) throws BadPreCondition, IOException

Creates a concrete model for a given extension and contents.

The model is generated using getMetamodel(String) for the creation of the concrete model.

Parameters:
extThe extension
inputThe contents of the file
Returns:
A concrete metamodel
Exceptions:
BadPreConditionwhen the model couldn't be created
IOExceptionwhen the input couldn't be parsed

Implemented in metadone.client.functions.importer.GrasylaImporter, metadone.client.functions.importer.km3.KM3Importer, metadone.client.functions.importer.ModelImporter, and metadone.client.functions.importer.owl.OWLImporter.

String metadone.client.functions.importer.Importer.getMetamodelName ( String  ext) throws BadPreCondition

Returns the name of the metamodel for the given extension.

If the extension is supported, a name of the metamodel is returned. null is returned when the extension is not supported.

Parameters:
extThe extension (may be null)
Returns:
The name of a metamodel or null
Exceptions:
BadPreCondition

Implemented in metadone.client.functions.importer.Importer.AbstractImporter, and metadone.client.functions.importer.ModelImporter.

Referenced by metadone.client.functions.importer.ModelImporter.getMetamodelName().


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations