Class AbstractModelTransformationInfo
- java.lang.Object
-
- com.nomagic.magicdraw.modeltransformations.AbstractModelTransformationInfo
-
- All Implemented Interfaces:
ModelTransformationInfo
- Direct Known Subclasses:
AnyToAnyModelTransformationInfo
@OpenApiAll public abstract class AbstractModelTransformationInfo extends java.lang.Object implements ModelTransformationInfo
Abstract class for model transformation info.- See Also:
ModelTransformation
-
-
Constructor Summary
Constructors Constructor Description AbstractModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconNameWithPath)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getDescriptionAsStream()
Returns model transformation description as streamjavax.swing.Icon
getIcon()
Returns model transformation iconjava.lang.String
getTransformationName()
Getter for model transformation nameboolean
isDefaulTypeMapProfileMappingOrderForward()
Returns mapping order of default type map profile-
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, getDefaultPropertyManager, getDefaulTypeMapProfileName, getSpecificTypeMap, getTransformation, getVisibleClasses, isOnlyInPlace, isSupportsLeaveIntactModel, isTypeMappingSupported, isVisibleInBrowser, prepareTransformation, shouldPreloadDiagram
-
-
-
-
Constructor Detail
-
AbstractModelTransformationInfo
public AbstractModelTransformationInfo(java.lang.String transformationName, java.lang.String transformationDescription, java.lang.String iconNameWithPath)
Constructor- Parameters:
transformationName
- Model transformation nametransformationDescription
- Model transformation descriptioniconNameWithPath
- Icon name with resourse path
-
-
Method Detail
-
getDescriptionAsStream
@CheckForNull public java.io.InputStream getDescriptionAsStream()
Returns model transformation description as stream- Specified by:
getDescriptionAsStream
in interfaceModelTransformationInfo
- Returns:
- input stream of model transformation description.
-
getTransformationName
public java.lang.String getTransformationName()
Getter for model transformation name- Specified by:
getTransformationName
in interfaceModelTransformationInfo
- Returns:
- model transformation name
-
isDefaulTypeMapProfileMappingOrderForward
public boolean isDefaulTypeMapProfileMappingOrderForward()
Description copied from interface:ModelTransformationInfo
Returns mapping order of default type map profile- Specified by:
isDefaulTypeMapProfileMappingOrderForward
in interfaceModelTransformationInfo
- Returns:
- return true for forward mapping
-
getIcon
public javax.swing.Icon getIcon()
Returns model transformation icon- Specified by:
getIcon
in interfaceModelTransformationInfo
- Returns:
- model transformation icon
-
-