Previous topic  Top  Next topic  Print this Topic
 

Schema of ontomapComplexMappingExtension

 

 <!ELEMENT extension (mappingProvider)*>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED >

point - a fully qualified identifier of the target extension point
id - an optional identifier of the extension instance
name - an optional name of the extension instance

 

 <!ELEMENT mappingProvider EMPTY>

<!ATTLIST mappingProvider

mappingProviderClass        CDATA #REQUIRED

name                        CDATA #REQUIRED>

mappingProviderClass - the fully qualified name of the class that implements com.ontoprise.ontostudio.ontomap.mapping.provider.IMappingProvider.
name - The name of the mappingProvider.

 

The interface of IMappingProvider must be implemented and provides the following methods:

Method

Description

String getName()

Returns the name of the implemented mapping pattern.

String getDescription()

Returns the description of the implemented mapping pattern.

boolean supportsType(String type)

Returns true if the MappingProvider supports the given mapping type, e.g. "BEISPIEL".

boolean matches(INode[] sourceNodes, INode[] targetNodes)

Returns true if the mapping pattern is applicable for the given user selection within the mapping view.

boolean hasTemplate()

Returns true if the MappingProvider implements a template for the mapping creation.

Boolean hasNext()

Returns true if the MappingProvider has a next template page for mapping creation.

boolean canSaveMapping()

Returns true if all data needed for the mapping creation is available.

boolean hasPropertyPage()

Returns true if the MappingProvider implements its own property page for existing mappings.

boolean supportsMapping(IMapping mapping)

Returns true if the MappingProvider supports the type of the given mapping.

Composite createComponent(Composite parent)

Returns a composite with the GUI-components for the mapping pattern or the mapping properties.

void init(INode[] sourceNodes, INode[] targetNodes

This method initializes the GUI components for the mapping pattern based on the given mapping nodes.

void init(IMapping mapping)

This method initializes the GUI components for the mapping properties based on the given mapping.

IMapping[] getMappings()

Has to return the mappings created by the MappingProvider.

IMappingInstance getMappingInstance()

This method has to return the implementation ofcom.ontoprise.ontostudio.ontomap.control.mapping.IMappingInstancewhich is responsible for the mapping metadata and the rule generation.

boolean isPropertyPagePinnedWhenEditing()

Returns true if the property page should be pinned during editing, e.g. when providing drop-actions from the ontology navigator.