@OpenApiAll public class ConvertElementInfo extends java.lang.Object implements java.lang.Comparable<ConvertElementInfo>
Refactoring
,
Element
,
PresentationElement
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
ConvertElementInfo.DisposeSourceValidator
Validates whether source should be disposed after conversion.
|
Constructor and Description |
---|
ConvertElementInfo(java.lang.Class elementType)
Constructs this info.
|
ConvertElementInfo(java.lang.Class elementType,
boolean canInfoBeLost)
Constructs this info.
|
ConvertElementInfo(java.lang.Class elementType,
java.lang.Class symbolType)
Constructs this info.
|
ConvertElementInfo(java.lang.String name,
java.lang.Class elementType,
boolean createSymbol)
Constructs this info.
|
ConvertElementInfo(java.lang.String name,
java.lang.Class elementType,
java.lang.Class 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 |
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.lang.Class |
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 |
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 |
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 |
setPreserveElementID(boolean preserveElementID)
Sets preserve element ID flag value.
|
public ConvertElementInfo(@CheckForNull java.lang.String name, java.lang.Class elementType, @CheckForNull java.lang.Class symbolType)
name
- name of conversion.elementType
- type to which to convert.symbolType
- preferred symbol type to which to convert.public ConvertElementInfo(java.lang.Class elementType, java.lang.Class 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 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 elementType)
elementType
- type to which to convert.public ConvertElementInfo(java.lang.Class elementType, boolean canInfoBeLost)
elementType
- type to which to convert.canInfoBeLost
- indicates if info can be lost by conversion.public java.lang.String getName()
public java.lang.Class getElementType()
public java.lang.Class 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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
- stereotypes@Nonnull public java.util.Collection<Stereotype> getAdditionalStereotypes()
public ConvertElementInfo.DisposeSourceValidator getDisposeSourceValidator()
public void setDisposeSourceValidator(ConvertElementInfo.DisposeSourceValidator disposeSourceValidator)
disposeSourceValidator
- dispose source validator to set.