@OpenApiAll public class ConvertElementInfo extends java.lang.Object implements java.lang.Comparable<ConvertElementInfo>
Refactoring, 
Element, 
PresentationElement| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ConvertElementInfo.DisposeSourceValidator
Validates whether source should be disposed after conversion. 
 | 
| Constructor and Description | 
|---|
ConvertElementInfo(java.lang.Class<? extends Element> elementType)
Constructs this info. 
 | 
ConvertElementInfo(java.lang.Class<? extends Element> elementType,
                  boolean canInfoBeLost)
Constructs this info. 
 | 
ConvertElementInfo(java.lang.Class<? extends Element> elementType,
                  java.lang.Class<? extends PresentationElement> symbolType)
Constructs this info. 
 | 
ConvertElementInfo(java.lang.String name,
                  java.lang.Class<? extends Element> elementType,
                  boolean createSymbol)
Constructs this info. 
 | 
ConvertElementInfo(java.lang.String name,
                  java.lang.Class<? extends Element> elementType,
                  java.lang.Class<? extends PresentationElement> symbolType)
Constructs this info. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canChangeElement(Element element)
Indicates if element can be changed by conversion. 
 | 
boolean | 
canConvert(Element element)
Indicates if element can be converted. 
 | 
boolean | 
canInfoBeLost(Element source)
Indicates if info can be lost for a given source element. 
 | 
int | 
compareTo(ConvertElementInfo o)  | 
boolean | 
equals(java.lang.Object o)  | 
java.util.Collection<Stereotype> | 
getAdditionalStereotypes()  | 
com.nomagic.magicdraw.uml.ConvertElementInfoCategory | 
getCategory()  | 
ConvertElementInfo.DisposeSourceValidator | 
getDisposeSourceValidator()
Gets dispose source validator. 
 | 
java.lang.String | 
getElementIDSuffix()
Gets element ID suffix. 
 | 
java.lang.Class<? extends Element> | 
getElementType()
Gets type of the element to which to convert. 
 | 
java.lang.String | 
getHumanName()
Gets human-readable format of the conversion. 
 | 
java.lang.String | 
getName()
Gets name of conversion. 
 | 
java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> | 
getPendingMapping()  | 
java.lang.Class<? extends PresentationElement> | 
getSymbolType()
Type of the symbol to which to convert. 
 | 
int | 
hashCode()  | 
boolean | 
isCanChangeElementName()
Gets can change element name flag value. 
 | 
boolean | 
isConvertingSourceEditable(Element source)
Indicates if source element is editable 
 | 
boolean | 
isConvertOnlyIncomingReferences()
Gets convert only incoming references flag value. 
 | 
boolean | 
isConvertRelatedElements()  | 
boolean | 
isCreateSymbol()
Gets create symbol flag value. 
 | 
boolean | 
isDisposeSource()
Indicates if source should be disposed after conversion. 
 | 
boolean | 
isPreserveElementID()
Gets preserve element ID flag value. 
 | 
boolean | 
isRemoveFromCollections()
If the method returns true then convert should remove a value from the source element collection. 
 | 
void | 
setAdditionalStereotypes(java.util.Collection<Stereotype> stereotypes)
Set stereotypes to apply to converted element after conversion 
 | 
void | 
setCanChangeElementName(boolean canChangeElementName)
Sets can change element name flag value. 
 | 
void | 
setCanInfoBeLost(boolean canInfoBeLost)
Sets info can be lost flag value. 
 | 
void | 
setCategory(com.nomagic.magicdraw.uml.ConvertElementInfoCategory category)
Set category of info used for grouping of targets in UI. 
 | 
void | 
setConvertOnlyIncomingReferences(boolean convertOnlyIncomingReferences)
Sets convert only incoming references flag value. 
 | 
void | 
setConvertRelatedElements(boolean convertRelatedElements)
Set flag for related elements converting 
 | 
void | 
setCreateSymbol(boolean createSymbol)
Sets create symbol flag value. 
 | 
void | 
setDisposeSourceValidator(ConvertElementInfo.DisposeSourceValidator disposeSourceValidator)
Sets dispose source validator. 
 | 
void | 
setElementIDSuffix(java.lang.String elementIDSuffix)
Sets element ID suffix. 
 | 
void | 
setPendingMapping(java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> pendingMapping)
Sets mapping for elements which will be converted later 
 | 
void | 
setPreserveElementID(boolean preserveElementID)
Sets preserve element ID flag value. 
 | 
public ConvertElementInfo(@CheckForNull
                          java.lang.String name,
                          java.lang.Class<? extends Element> elementType,
                          @CheckForNull
                          java.lang.Class<? extends PresentationElement> symbolType)
name - name of conversion.elementType - type to which to convert.symbolType - preferred symbol type to which to convert.public ConvertElementInfo(java.lang.Class<? extends Element> elementType, java.lang.Class<? extends PresentationElement> symbolType)
elementType - type to which to convert.symbolType - preferred symbol type to which to convert.public ConvertElementInfo(@CheckForNull
                          java.lang.String name,
                          java.lang.Class<? extends Element> elementType,
                          boolean createSymbol)
name - name of conversion.elementType - type to which to convert.createSymbol - indicates if symbol should be created with this conversion.public ConvertElementInfo(java.lang.Class<? extends Element> elementType)
elementType - type to which to convert.public ConvertElementInfo(java.lang.Class<? extends Element> elementType, boolean canInfoBeLost)
elementType - type to which to convert.canInfoBeLost - indicates if info can be lost by conversion.@CheckForNull public java.lang.String getName()
public java.lang.Class<? extends Element> getElementType()
@CheckForNull public java.lang.Class<? extends PresentationElement> getSymbolType()
public java.lang.String getHumanName()
public int compareTo(@Nonnull
                     ConvertElementInfo o)
compareTo in interface java.lang.Comparable<ConvertElementInfo>public boolean isCreateSymbol()
public void setCreateSymbol(boolean createSymbol)
createSymbol - create symbol flag value.public boolean canInfoBeLost(Element source)
source - element being converted.public void setCanInfoBeLost(boolean canInfoBeLost)
canInfoBeLost - info can be lost flag value.public boolean canConvert(Element element)
element - element to convert.public boolean isConvertingSourceEditable(Element source)
source - source to convertpublic boolean isConvertOnlyIncomingReferences()
public void setConvertOnlyIncomingReferences(boolean convertOnlyIncomingReferences)
convertOnlyIncomingReferences - convert only incoming references flag value.public boolean isDisposeSource()
public boolean isCanChangeElementName()
public void setCanChangeElementName(boolean canChangeElementName)
canChangeElementName - can change element name flag value.public boolean canChangeElement(Element element)
element - element being converted.public boolean isPreserveElementID()
public void setPreserveElementID(boolean preserveElementID)
preserveElementID - preserve element ID flag value.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic com.nomagic.magicdraw.uml.ConvertElementInfoCategory getCategory()
public void setCategory(com.nomagic.magicdraw.uml.ConvertElementInfoCategory category)
category - categorypublic java.lang.String getElementIDSuffix()
public void setElementIDSuffix(java.lang.String elementIDSuffix)
elementIDSuffix - suffix to set.public boolean isRemoveFromCollections()
public void setAdditionalStereotypes(@Nonnull
                                     java.util.Collection<Stereotype> stereotypes)
stereotypes - stereotypespublic java.util.Collection<Stereotype> getAdditionalStereotypes()
public ConvertElementInfo.DisposeSourceValidator getDisposeSourceValidator()
public void setDisposeSourceValidator(ConvertElementInfo.DisposeSourceValidator disposeSourceValidator)
disposeSourceValidator - dispose source validator to set.public boolean isConvertRelatedElements()
public void setConvertRelatedElements(boolean convertRelatedElements)
convertRelatedElements - convert related elements@CheckForNull public java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> getPendingMapping()
public void setPendingMapping(java.util.Map<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject> pendingMapping)
pendingMapping - mapping of elements will be done later