Interface ModelTransformationInfo
- All Known Implementing Classes:
AbstractModelTransformationInfo
,AnyToAnyModelTransformationInfo
@OpenApiAll
public interface ModelTransformationInfo
Interface for model transformation info
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
If true, new elements can be created as the result of transformation.Returns property manager with default properties for transformationReturns name of default type map profileReturns model transformation description as streamgetIcon()
Returns model transformation iconIn case there is no user selected option to select type map specific type map can be provided.Returns model transformation for this infoGetter for model transformation namedefault Collection<Class>
Visible classes that will be displayed in transformation source selectionboolean
Returns mapping order of default type map profileboolean
boolean
boolean
Getter for type mapping supportboolean
Is element visible in source selection tree.boolean
prepareTransformation
(Project project) Prepares transformationdefault boolean
shouldPreloadDiagram
(DiagramPresentationElement diagram, Collection<BaseElement> elementsInScope)
-
Method Details
-
getTransformationName
String getTransformationName()Getter for model transformation name- Returns:
- model transformation name
-
getIcon
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
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
Prepares transformation- Parameters:
project
- project- Returns:
- true if preparation was successful, false in other case
-
isVisibleInBrowser
Is element visible in source selection tree.- Parameters:
e
- element to check- Returns:
- true if visible
-
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
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
In case there is no user selected option to select type map specific type map can be provided.- Returns:
TypeMapProfile
which 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, 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
-