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
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.IconmIconModel transformation iconprivate java.lang.StringmIconNameWithPathModel transformation icon nameprivate java.lang.StringmModelTransformationDescriptionModel transformation description fileprivate java.lang.StringmModelTransformationNameModel transformation name
-
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.InputStreamgetDescriptionAsStream()Returns model transformation description as streamjavax.swing.IcongetIcon()Returns model transformation iconjava.lang.StringgetTransformationName()Getter for model transformation namebooleanisDefaulTypeMapProfileMappingOrderForward()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, isOnlyInPlace, isSupportsLeaveIntactModel, isTypeMappingSupported, isVisibleInBrowser, prepareTransformation, shouldPreloadDiagram
-
-
-
-
Field Detail
-
mModelTransformationName
private java.lang.String mModelTransformationName
Model transformation name
-
mModelTransformationDescription
private java.lang.String mModelTransformationDescription
Model transformation description file
-
mIconNameWithPath
private java.lang.String mIconNameWithPath
Model transformation icon name
-
mIcon
private javax.swing.Icon mIcon
Model transformation icon
-
-
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
public java.io.InputStream getDescriptionAsStream()
Returns model transformation description as stream- Specified by:
getDescriptionAsStreamin interfaceModelTransformationInfo- Returns:
- input stream of model transformation description.
-
getTransformationName
public java.lang.String getTransformationName()
Getter for model transformation name- Specified by:
getTransformationNamein interfaceModelTransformationInfo- Returns:
- model transformation name
-
isDefaulTypeMapProfileMappingOrderForward
public boolean isDefaulTypeMapProfileMappingOrderForward()
Description copied from interface:ModelTransformationInfoReturns mapping order of default type map profile- Specified by:
isDefaulTypeMapProfileMappingOrderForwardin interfaceModelTransformationInfo- Returns:
- return true for forward mapping
-
getIcon
public javax.swing.Icon getIcon()
Returns model transformation icon- Specified by:
getIconin interfaceModelTransformationInfo- Returns:
- model transformation icon
-
-