Class ElementReportInfo

java.lang.Object
com.nomagic.magicdraw.diff.report.ElementReportInfo

@OpenApiAll public class ElementReportInfo extends Object
Contains merge/diff report element information.
  • Constructor Details

    • ElementReportInfo

      protected ElementReportInfo(String id, ReportType reportType)
      Constructs element report info.
      Parameters:
      id - id of the element.
      reportType - type of the report.
  • Method Details

    • getElementName

      public String getElementName()
      Gets name of the element.
      Returns:
      name of the element.
    • setElementName

      public void setElementName(String elementName)
      Sets name of the element.
      Parameters:
      elementName - name to set.
    • getElementType

      public String getElementType()
      Gets type of the element.
      Returns:
      type of the element.
    • setElementType

      public void setElementType(String elementType)
      Sets element type.
      Parameters:
      elementType - sets type of the element.
    • getQualifiedName

      public String getQualifiedName()
      Gets element qualified name.
      Returns:
      element qualified name.
    • setQualifiedName

      public void setQualifiedName(String qualifiedName)
      Sets element qualified name.
      Parameters:
      qualifiedName - qualified name to set.
    • getSourceChangeKind

      public 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 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 List<PropertyReportInfo> getProperties()
      Gets modified properties.
      Returns:
      modified properties.
    • setProperties

      public void setProperties(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 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 String getAddedTypeText()
      Gets text of the added modification kind.
      Returns:
      text of the added modification kind.
    • getModifiedTypeText

      public String getModifiedTypeText()
      Gets text of the modified modification kind.
      Returns:
      text of the modified modification kind.
    • getRemovedTypeText

      public String getRemovedTypeText()
      Gets text of the removed modification kind.
      Returns:
      text of the removed modification kind.
    • getID

      public 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.