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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
IN
private java.lang.String
mElementName
private java.lang.String
mElementType
private java.lang.String
mID
private java.util.List<PropertyReportInfo>
mProperties
private java.lang.String
mQualifiedName
private ReportType
mReportType
private ModificationKind
mSourceChangeKind
private ModificationKind
mTargetChangeKind
private static java.lang.String
TO
-
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.private java.lang.String
getTargetLabel()
private java.lang.String
getTypeText(ModificationKind 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.
-
-
-
Field Detail
-
IN
private static final java.lang.String IN
- See Also:
- Constant Field Values
-
TO
private static final java.lang.String TO
- See Also:
- Constant Field Values
-
mElementName
private java.lang.String mElementName
-
mElementType
private java.lang.String mElementType
-
mQualifiedName
private java.lang.String mQualifiedName
-
mSourceChangeKind
private ModificationKind mSourceChangeKind
-
mTargetChangeKind
private ModificationKind mTargetChangeKind
-
mID
private final java.lang.String mID
-
mReportType
private final ReportType mReportType
-
mProperties
private java.util.List<PropertyReportInfo> mProperties
-
-
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.
-
getTypeText
private java.lang.String getTypeText(ModificationKind kind)
-
getTargetLabel
private java.lang.String getTargetLabel()
-
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.
-
-