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.voidupdateResource(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 benullotherResource- the other MD object resource, may benullancestorResource- the common ancestor MD object resource, may benull
-
-
Method Details
-
updateResource
Updates stored resource object.- Parameters:
resource- the updated resource, may benullside- 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, notnullsymlink- the object's symlink, may benullside- the comparison side, notnull- Returns:
- the object found or
null
-
getObject
Description copied from interface:IResourceReturns the contained object. -
getChild
Description copied from interface:IResourceReturns a child object by its key.
-