Class ElementReportInfo
java.lang.Object
com.nomagic.magicdraw.diff.report.ElementReportInfo
Contains merge/diff report element information.
-
Constructor Summary
ModifierConstructorDescriptionprotected
ElementReportInfo
(String id, ReportType reportType) Constructs element report info. -
Method Summary
Modifier and TypeMethodDescriptionint
depth()
Gets element depth in containment tree.Gets text of the added modification kind.Gets name of the element.Gets type of the element.getID()
Gets element ID.static String
getModificationKindText
(ModificationKind modificationKind) Gets representation text of a modification kind.Gets text of the modified modification kind.Gets modified properties.Gets element qualified name.Gets text of the removed modification kind.Gets source change kind.Gets target change kind.boolean
isOfKind
(ModificationKind modificationKind) Checks if modification is of a given type.void
setElementName
(String elementName) Sets name of the element.void
setElementType
(String elementType) Sets element type.void
setProperties
(List<PropertyReportInfo> properties) Sets modified properties.void
setQualifiedName
(String qualifiedName) Sets element qualified name.void
setSourceChangeKind
(ModificationKind sourceChangeKind) Sets source change kind.void
setTargetChangeKind
(ModificationKind targetChangeKind) Sets target change kind.
-
Constructor Details
-
ElementReportInfo
Constructs element report info.- Parameters:
id
- id of the element.reportType
- type of the report.
-
-
Method Details
-
getElementName
Gets name of the element.- Returns:
- name of the element.
-
setElementName
Sets name of the element.- Parameters:
elementName
- name to set.
-
getElementType
Gets type of the element.- Returns:
- type of the element.
-
setElementType
Sets element type.- Parameters:
elementType
- sets type of the element.
-
getQualifiedName
Gets element qualified name.- Returns:
- element qualified name.
-
setQualifiedName
Sets element qualified name.- Parameters:
qualifiedName
- qualified name to set.
-
getSourceChangeKind
Gets source change kind.- Returns:
- source change kind.
-
setSourceChangeKind
Sets source change kind.- Parameters:
sourceChangeKind
- change kind to set.
-
getTargetChangeKind
Gets target change kind.- Returns:
- target change kind.
-
setTargetChangeKind
Sets target change kind.- Parameters:
targetChangeKind
- change kind to set.
-
getProperties
Gets modified properties.- Returns:
- modified properties.
-
setProperties
Sets modified properties.- Parameters:
properties
- properties to set.
-
isOfKind
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
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
Gets text of the added modification kind.- Returns:
- text of the added modification kind.
-
getModifiedTypeText
Gets text of the modified modification kind.- Returns:
- text of the modified modification kind.
-
getRemovedTypeText
Gets text of the removed modification kind.- Returns:
- text of the removed modification kind.
-
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.
-