Package com._1c.g5.v8.dt.compare.model
Class ComparedObjectPath
java.lang.Object
com._1c.g5.v8.dt.compare.model.ComparedObjectPath
Stores path from the compared object to the closest top parent.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates empty path.ComparedObjectPath
(ComparedObjectPath parentPath, Long bmId, int featureId, int parentFeatureEClassId, int positionInManyFeatureArray) Creates path for the specified feature. -
Method Summary
-
Constructor Details
-
ComparedObjectPath
public ComparedObjectPath()Creates empty path. -
ComparedObjectPath
public ComparedObjectPath(ComparedObjectPath parentPath, Long bmId, int featureId, int parentFeatureEClassId, int positionInManyFeatureArray) Creates path for the specified feature.- Parameters:
parentPath
- the parent path, cannot benull
bmId
- the bmId of the compared object, can benull
featureId
- the feature idparentFeatureEClassId
- the eClassId of the feature's parent containerpositionInManyFeatureArray
- object's position in the array of the many-feature, can be -1 for single features
-
-
Method Details
-
isEmpty
public boolean isEmpty()Tells whether this path is empty (not filled by any data).- Returns:
true
if the path is empty,false
otherwise
-
getPositionInManyFeatureArray
public int getPositionInManyFeatureArray()Returns object's position in a many-feature array.- Returns:
- the object's position in a many-feature array or -1 if irrelevant
-
getFullPath
Builds full path to the compared object.- Returns:
- the full path from the top object as list of integers, never
null
-
getBmId
Returns bmId of the compared object.- Returns:
- the bmId or
null
-