@OpenApiAll
public class ElementReportInfo
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
ElementReportInfo(java.lang.String id,
com.nomagic.magicdraw.diff.report.ReportType reportType)
Constructs element report info.
|
Modifier and Type | Method and Description |
---|---|
int |
depth()
Gets element depth in containment tree.
|
java.lang.String |
getAddedTypeText()
Gets text of the added modification kind.
|
java.lang.String |
getElementName()
Gets name of the element.
|
java.lang.String |
getElementType()
Gets type of the element.
|
java.lang.String |
getID()
Gets element ID.
|
static java.lang.String |
getModificationKindText(ModificationKind modificationKind)
Gets representation text of a modification kind.
|
java.lang.String |
getModifiedTypeText()
Gets text of the modified modification kind.
|
java.util.List<PropertyReportInfo> |
getProperties()
Gets modified properties.
|
java.lang.String |
getQualifiedName()
Gets element qualified name.
|
java.lang.String |
getRemovedTypeText()
Gets text of the removed modification kind.
|
java.lang.String |
getSourceChangeKind()
Gets source change kind.
|
java.lang.String |
getTargetChangeKind()
Gets target change kind.
|
boolean |
isOfKind(ModificationKind modificationKind)
Checks if modification is of a given type.
|
void |
setElementName(java.lang.String elementName)
Sets name of the element.
|
void |
setElementType(java.lang.String elementType)
Sets element type.
|
void |
setProperties(java.util.List<PropertyReportInfo> properties)
Sets modified properties.
|
void |
setQualifiedName(java.lang.String qualifiedName)
Sets element qualified name.
|
void |
setSourceChangeKind(ModificationKind sourceChangeKind)
Sets source change kind.
|
void |
setTargetChangeKind(ModificationKind targetChangeKind)
Sets target change kind.
|
protected ElementReportInfo(java.lang.String id, com.nomagic.magicdraw.diff.report.ReportType reportType)
id
- id of the element.reportType
- type of the report.public java.lang.String getElementName()
public void setElementName(java.lang.String elementName)
elementName
- name to set.public java.lang.String getElementType()
public void setElementType(java.lang.String elementType)
elementType
- sets type of the element.public java.lang.String getQualifiedName()
public void setQualifiedName(java.lang.String qualifiedName)
qualifiedName
- qualified name to set.public java.lang.String getSourceChangeKind()
public void setSourceChangeKind(ModificationKind sourceChangeKind)
sourceChangeKind
- change kind to set.public java.lang.String getTargetChangeKind()
public void setTargetChangeKind(ModificationKind targetChangeKind)
targetChangeKind
- change kind to set.public java.util.List<PropertyReportInfo> getProperties()
public void setProperties(java.util.List<PropertyReportInfo> properties)
properties
- properties to set.public boolean isOfKind(ModificationKind modificationKind)
modificationKind
- modification kind to compare with.public static java.lang.String getModificationKindText(ModificationKind modificationKind)
modificationKind
- modification kind for which to get its text.public java.lang.String getAddedTypeText()
public java.lang.String getModifiedTypeText()
public java.lang.String getRemovedTypeText()
public java.lang.String getID()
public int depth()