Class ElementReportInfo
- java.lang.Object
-
- com.nomagic.magicdraw.diff.report.ElementReportInfo
-
@OpenApiAll public class ElementReportInfo extends java.lang.ObjectContains merge/diff report element information.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedElementReportInfo(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 intdepth()Gets element depth in containment tree.java.lang.StringgetAddedTypeText()Gets text of the added modification kind.java.lang.StringgetElementName()Gets name of the element.java.lang.StringgetElementType()Gets type of the element.java.lang.StringgetID()Gets element ID.static java.lang.StringgetModificationKindText(ModificationKind modificationKind)Gets representation text of a modification kind.java.lang.StringgetModifiedTypeText()Gets text of the modified modification kind.java.util.List<PropertyReportInfo>getProperties()Gets modified properties.java.lang.StringgetQualifiedName()Gets element qualified name.java.lang.StringgetRemovedTypeText()Gets text of the removed modification kind.java.lang.StringgetSourceChangeKind()Gets source change kind.java.lang.StringgetTargetChangeKind()Gets target change kind.booleanisOfKind(ModificationKind modificationKind)Checks if modification is of a given type.voidsetElementName(java.lang.String elementName)Sets name of the element.voidsetElementType(java.lang.String elementType)Sets element type.voidsetProperties(java.util.List<PropertyReportInfo> properties)Sets modified properties.voidsetQualifiedName(java.lang.String qualifiedName)Sets element qualified name.voidsetSourceChangeKind(ModificationKind sourceChangeKind)Sets source change kind.voidsetTargetChangeKind(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.
-
-