Class ComparedMdObjectResource

java.lang.Object
com._1c.g5.v8.dt.internal.md.compare.ComparedMdObjectResource
All Implemented Interfaces:
IResource

public class ComparedMdObjectResource extends Object implements IResource
The resource providing access to compared MD objects (in the form of compared MD object providers).
  • Constructor Details

    • ComparedMdObjectResource

      public ComparedMdObjectResource(MdObjectResource mainResource, MdObjectResource otherResource, MdObjectResource ancestorResource)
      Constructs the resource based on the specified MD object resources.
      Parameters:
      mainResource - the main MD object resource, may be null
      otherResource - the other MD object resource, may be null
      ancestorResource - the common ancestor MD object resource, may be null
  • Method Details

    • updateResource

      public void updateResource(MdObjectResource resource, ComparisonSide side)
      Updates stored resource object.
      Parameters:
      resource - the updated resource, may be null
      side - the comparison side that resource to update, cannot be null
    • getChildBySymlink

      public MdObject getChildBySymlink(ComparisonContext comparisonContext, String symlink, ComparisonSide side)
      Gets child MdObject by the specified symlink.
      Parameters:
      comparisonContext - the comparison context, not null
      symlink - the object's symlink, may be null
      side - the comparison side, not null
      Returns:
      the object found or null
    • getObject

      public ComparedMdObjects getObject(ComparisonContext comparisonContext)
      Description copied from interface: IResource
      Returns the contained object.
      Specified by:
      getObject in interface IResource
      Parameters:
      comparisonContext - The context of the current comparison operation. Can't null
      Returns:
      the contained object, may be null
    • getChild

      public ComparedMdObjects getChild(ComparisonContext comparisonContext, Object key)
      Description copied from interface: IResource
      Returns a child object by its key.
      Specified by:
      getChild in interface IResource
      Parameters:
      comparisonContext - The context of the current comparison operation. Can't null
      key - the child key, not null
      Returns:
      the child object or null if not available