Class AnyToAnyModelTransformationInfo
- java.lang.Object
-
- com.nomagic.magicdraw.modeltransformations.AbstractModelTransformationInfo
-
- com.nomagic.magicdraw.modeltransformations.impl.any_to_any.AnyToAnyModelTransformationInfo
-
- All Implemented Interfaces:
ModelTransformationInfo
@OpenApiAll public class AnyToAnyModelTransformationInfo extends AbstractModelTransformationInfo
- See Also:
ModelTransformation
-
-
Field Summary
Fields Modifier and Type Field Description private PropertyManagermPropertiesprivate java.lang.String[]mRequiredProfilesstatic java.lang.StringMT_RESET_SYMBOL_PROPERTIES_TO_DEFAULT
-
Constructor Summary
Constructors Constructor Description AnyToAnyModelTransformationInfo()AnyToAnyModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconName)AnyToAnyModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconName, java.lang.String[] requiredProfiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyManagercreatePropertyManager()PropertyManagergetDefaultPropertyManager()Returns property manager with default properties for transformationjava.lang.StringgetDefaulTypeMapProfileName()Returns name of default type map profileTypeMapProfilegetSpecificTypeMap()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.util.Collection<java.lang.Class>getVisibleClasses()Visible classes that will be displayed in transformation source selectionbooleanisOnlyInPlace()booleanisSupportsLeaveIntactModel()booleanisTypeMappingSupported()Getter for type mapping supportbooleanisVisibleInBrowser(BaseElement e)Is element visible in source selection tree.protected booleanloadProfiles(Project project)private java.util.stream.Stream<java.lang.String>notLoadedRequiredProfiles(Project project)booleanprepareTransformation(Project project)Prepares transformation-
Methods inherited from class com.nomagic.magicdraw.modeltransformations.AbstractModelTransformationInfo
getDescriptionAsStream, getIcon, getTransformationName, isDefaulTypeMapProfileMappingOrderForward
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nomagic.magicdraw.modeltransformations.ModelTransformationInfo
canCreateNewElements, shouldPreloadDiagram
-
-
-
-
Field Detail
-
MT_RESET_SYMBOL_PROPERTIES_TO_DEFAULT
public static final java.lang.String MT_RESET_SYMBOL_PROPERTIES_TO_DEFAULT
- See Also:
- Constant Field Values
-
mProperties
private PropertyManager mProperties
-
mRequiredProfiles
private final java.lang.String[] mRequiredProfiles
-
-
Constructor Detail
-
AnyToAnyModelTransformationInfo
public AnyToAnyModelTransformationInfo()
-
AnyToAnyModelTransformationInfo
public AnyToAnyModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconName)
-
AnyToAnyModelTransformationInfo
public AnyToAnyModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconName, @CheckForNull java.lang.String[] requiredProfiles)
-
-
Method Detail
-
getDefaulTypeMapProfileName
public java.lang.String getDefaulTypeMapProfileName()
Description copied from interface:ModelTransformationInfoReturns name of default type map profile- Returns:
- name of default type map
-
prepareTransformation
public boolean prepareTransformation(Project project)
Description copied from interface:ModelTransformationInfoPrepares transformation- Parameters:
project- project- Returns:
- true if preparation was successful, false in other case
-
loadProfiles
protected boolean loadProfiles(Project project)
-
notLoadedRequiredProfiles
private java.util.stream.Stream<java.lang.String> notLoadedRequiredProfiles(Project project)
-
getTransformation
public ModelTransformation getTransformation()
Description copied from interface:ModelTransformationInfoReturns model transformation for this info- Returns:
- model transformation
-
isVisibleInBrowser
public boolean isVisibleInBrowser(BaseElement e)
Description copied from interface:ModelTransformationInfoIs element visible in source selection tree.- Parameters:
e- element to check- Returns:
- true if visible
-
getVisibleClasses
@CheckForNull public 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
-
createPropertyManager
protected PropertyManager createPropertyManager()
-
getDefaultPropertyManager
public PropertyManager getDefaultPropertyManager()
Description copied from interface:ModelTransformationInfoReturns property manager with default properties for transformation- Returns:
- property manager
-
isTypeMappingSupported
public boolean isTypeMappingSupported()
Description copied from interface:ModelTransformationInfoGetter for type mapping support- Returns:
- true if type mapping is supported by transformation
-
isSupportsLeaveIntactModel
public boolean isSupportsLeaveIntactModel()
-
isOnlyInPlace
public boolean isOnlyInPlace()
- Returns:
- true if transformation supports only in place transformation.
-
getSpecificTypeMap
public TypeMapProfile getSpecificTypeMap()
Description copied from interface:ModelTransformationInfoIn 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.
-
-