<!ELEMENT extension (transformationeditor)>
<!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 transformationeditor EMPTY>
<!ATTLIST transformationeditor
editorClass CDATA #REQUIRED
editorName CDATA #IMPLIED
category CDATA #REQUIRED>
| • | editorClass - The fully qualified name of the class that implements com.ontoprise.ontostudio.ontomap.views.IMappingTransformationEditor. |
| • | editorName - The name of the transformation editor. |
| • | category - The category of the transformation editor |
The interface of IMappingTransformationEditor must be implemented and provides the following methods:
Method |
Description |
|---|---|
String getCategory() |
Returns the category of the implemented mapping transformation editor. |
Composite createComponent(Composite parent) |
Returns a composite with the GUI-components for the mapping transformation editor. |
void init(IMapping mapping) |
This method initializes the GUI components for the mapping transformation editor for the given mapping. |
void init(IMapping mapping, FormToolkit toolkit) |
This method initializes the GUI components for the mapping transformation editor for the given mapping. |
void dispose() |
This method is invoked, when the object is disposed. Clean up operations can be done here. |
List<String> getRegisteredBuiltins() |
This method has to return the implementation of com.ontoprise.ontostudio.ontomap.control.mapping.IMappingInstance which is responsible for the mapping metadata and the rule generation. |
boolean canSaveTransformation() |
Returns true if the transformation is valid and can be saved. |
String getTransformation() |
Returns the transformation to be stored as metadata for the mapping |
String getTransformationRepresentation() |
Returns the "pretty" representation of the transformation. |
void addUpdateFormListener(IPropertyFormListener l) |
Allows to inform the parent GUI component that a GUI update is needed. |