Class ComponentsElement

All Implemented Interfaces:
Mergeable

public class ComponentsElement extends AbstractMergeableElementList
  • Field Details

    • TAG

      static final DescriptorTag TAG
    • conflictVerificationkeys

      private List conflictVerificationkeys
  • Constructor Details

    • ComponentsElement

      public ComponentsElement(org.jdom2.Element element)
  • Method Details

    • getAllowedTags

      public DescriptorTag[] getAllowedTags()
      Description copied from interface: Mergeable
      Returns an array of tags/elements that are allowed under the current element.
      Returns:
      the allowedTags
    • isExpectedElementType

      protected boolean isExpectedElementType(Mergeable me)
      Description copied from class: AbstractMergeableSupport
      Determines if the passed in Mergeable was of same type as this class.
      Specified by:
      isExpectedElementType in class AbstractMergeableSupport
      Parameters:
      me - Mergeable instance to test.
      Returns:
      true if the passed in Mergeable can be merged with the current Mergeable.
    • getElementNamesForConflictChecks

      protected List getElementNamesForConflictChecks(List defaultList)
    • getTagNameForRecurringMergeable

      protected String getTagNameForRecurringMergeable()
      Description copied from class: AbstractMergeableElementList
      Allows the sub classes to provided a tag name that they expect to recurr within them. For instance:
      • <components> expects <component> to recurr within itself.
      • <requirements> expects <requirement> to recurr within itself.
      Specified by:
      getTagNameForRecurringMergeable in class AbstractMergeableElementList
      Returns:
      tag name of the Mergeable element that occurs multiple times.
    • getElementNamesForConflictResolution

      protected List getElementNamesForConflictResolution(List defaultList)
      Description copied from class: AbstractMergeableSupport
      Sub classes should override if they wish to provide a different combination of composite keys for determining conflicts.
      Specified by:
      getElementNamesForConflictResolution in class AbstractMergeableElementList
      Parameters:
      defaultList - the default list.
      Returns:
      the default list.