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