Transformation Metatype Converters

Identifier:
com.ibm.xtools.transform.core.metatypeConverters

Since:
Transformation component - version 7.0

Description:
This extension defines a metatype converter which allows new metatypes to be defined and used by transformations and their properties.

A metatype converter provides the following functionality for a given type of data object:

Once a metatype converter is defined, the metatype can be used as the underlying type for transformation properties or can be used as the source and target model types for a transformation. When used as the type for a transformation property, the value of that property will be an applicable data object instead of a string. When used for source and target model types, the metatype converter must support adaptation of the selection into a data object.

Configuration Markup:

<!ELEMENT extension (MetatypeConverter+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>

A standard Eclipse extension for defining metatype converters. The "point" attribute must be set as com.ibm.xtools.transform.core.metatypeConverters.



<!ELEMENT MetatypeConverter EMPTY>

<!ATTLIST MetatypeConverter

id                CDATA #REQUIRED

metatype          CDATA #REQUIRED

description       CDATA #IMPLIED

typeClass         CDATA #REQUIRED

class             CDATA #REQUIRED

canAdaptSelection (true | false) "false"

hasEditableString (true | false) "false">

This extension entry defines one metatype converter. Multiple converters can be defined in the same extension.



Examples:
Following is an example of a metatype converter extension:


   <extension point="com.ibm.xtools.transform.core.metatypeConverters">
      <MetatypeConverter
         id="com.ibm.xtools.transform.core.metatype.string" 
         metatype="string"
         typeClass="java.lang.String"
         class="com.ibm.xtools.transform.core.internal.metatype.converters.StringMetatype"
         canAdaptSelection="true"
         hasEditableString="true" />
   </extension>

Supplied Implementation:
All metatype convert classes must be derived from com.ibm.xtools.transform.core.AbstractMetatype


Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.