Class ComparedMdObjectResource
java.lang.Object
com._1c.g5.v8.dt.internal.md.compare.ComparedMdObjectResource
- All Implemented Interfaces:
IResource
The resource providing access to compared MD objects (in the form of compared MD object providers).
-
Constructor Summary
ConstructorsConstructorDescriptionComparedMdObjectResource
(MdObjectResource mainResource, MdObjectResource otherResource, MdObjectResource ancestorResource) Constructs the resource based on the specified MD object resources. -
Method Summary
Modifier and TypeMethodDescriptiongetChild
(ComparisonContext comparisonContext, Object key) Returns a child object by its key.getChildBySymlink
(ComparisonContext comparisonContext, String symlink, ComparisonSide side) Gets child MdObject by the specified symlink.getObject
(ComparisonContext comparisonContext) Returns the contained object.void
updateResource
(MdObjectResource resource, ComparisonSide side) Updates stored resource object.
-
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 benull
otherResource
- the other MD object resource, may benull
ancestorResource
- the common ancestor MD object resource, may benull
-
-
Method Details
-
updateResource
Updates stored resource object.- Parameters:
resource
- the updated resource, may benull
side
- the comparison side that resource to update, cannot benull
-
getChildBySymlink
public MdObject getChildBySymlink(ComparisonContext comparisonContext, String symlink, ComparisonSide side) Gets child MdObject by the specified symlink.- Parameters:
comparisonContext
- the comparison context, notnull
symlink
- the object's symlink, may benull
side
- the comparison side, notnull
- Returns:
- the object found or
null
-
getObject
Description copied from interface:IResource
Returns the contained object. -
getChild
Description copied from interface:IResource
Returns a child object by its key.
-