Interface ModelTransformationInfo
-
- All Known Implementing Classes:
AbstractModelTransformationInfo,AnyToAnyModelTransformationInfo,DDLToUMLTransformationInfo,UMLToGenericDDLTransformationInfo,UMLToOracleDDLTransformationInfo
@OpenApiAll public interface ModelTransformationInfoInterface for model transformation info- See Also:
AbstractModelTransformationInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancanCreateNewElements()If true, new elements can be created as the result of transformation.PropertyManagergetDefaultPropertyManager()Returns property manager with default properties for transformationjava.lang.StringgetDefaulTypeMapProfileName()Returns name of default type map profilejava.io.InputStreamgetDescriptionAsStream()Returns model transformation description as streamjavax.swing.IcongetIcon()Returns model transformation iconTypeMapProfilegetSpecificTypeMap()In case there is no user selected option to select type map specific type map can be provided.ModelTransformationgetTransformation()Returns model transformation for this infojava.lang.StringgetTransformationName()Getter for model transformation namedefault java.util.Collection<java.lang.Class>getVisibleClasses()Visible classes that will be displayed in transformation source selectionbooleanisDefaulTypeMapProfileMappingOrderForward()Returns mapping order of default type map profilebooleanisOnlyInPlace()booleanisSupportsLeaveIntactModel()booleanisTypeMappingSupported()Getter for type mapping supportbooleanisVisibleInBrowser(BaseElement e)Is element visible in source selection tree.booleanprepareTransformation(Project project)Prepares transformationdefault booleanshouldPreloadDiagram(DiagramPresentationElement diagram, java.util.Collection<BaseElement> elementsInScope)
-
-
-
Method Detail
-
getTransformationName
java.lang.String getTransformationName()
Getter for model transformation name- Returns:
- model transformation name
-
getIcon
javax.swing.Icon getIcon()
Returns model transformation icon- Returns:
- model transformation icon
-
getTransformation
ModelTransformation getTransformation()
Returns model transformation for this info- Returns:
- model transformation
-
getDefaultPropertyManager
PropertyManager getDefaultPropertyManager()
Returns property manager with default properties for transformation- Returns:
- property manager
-
isTypeMappingSupported
boolean isTypeMappingSupported()
Getter for type mapping support- Returns:
- true if type mapping is supported by transformation
-
getDefaulTypeMapProfileName
java.lang.String getDefaulTypeMapProfileName()
Returns name of default type map profile- Returns:
- name of default type map
-
isDefaulTypeMapProfileMappingOrderForward
boolean isDefaulTypeMapProfileMappingOrderForward()
Returns mapping order of default type map profile- Returns:
- return true for forward mapping
-
prepareTransformation
boolean prepareTransformation(Project project)
Prepares transformation- Parameters:
project- project- Returns:
- true if preparation was successful, false in other case
-
isVisibleInBrowser
boolean isVisibleInBrowser(BaseElement e)
Is element visible in source selection tree.- Parameters:
e- element to check- Returns:
- true if visible
-
getVisibleClasses
@CheckForNull default java.util.Collection<java.lang.Class> getVisibleClasses()
Visible classes that will be displayed in transformation source selection- Returns:
- visible class types to show in transformation source selection, if null all classes can be visible
-
getDescriptionAsStream
java.io.InputStream getDescriptionAsStream()
Returns model transformation description as stream- Returns:
- input stream of model transformation description.
-
isSupportsLeaveIntactModel
boolean isSupportsLeaveIntactModel()
-
isOnlyInPlace
boolean isOnlyInPlace()
- Returns:
- true if transformation supports only in place transformation.
-
getSpecificTypeMap
@CheckForNull TypeMapProfile getSpecificTypeMap()
In case there is no user selected option to select type map specific type map can be provided.- Returns:
TypeMapProfilewhich should be used in this transformation.
-
canCreateNewElements
default boolean canCreateNewElements()
If true, new elements can be created as the result of transformation. This might cause auto-numbers update to be called which can be time consuming Returning false indicates that the transformation only modifies existing elements and updating auto-numbers can be skipped
-
shouldPreloadDiagram
default boolean shouldPreloadDiagram(DiagramPresentationElement diagram, java.util.Collection<BaseElement> elementsInScope)
- Parameters:
diagram- any not loaded diagram in the projectelementsInScope- all elements in scope of this transformation- Returns:
- true if the given diagram should be loaded before executing the transformation
-
-