Package com._1c.g5.v8.dt.compare.model
Class ComparedObjectPath
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.model.ComparedObjectPath
-
public class ComparedObjectPath extends Object
Stores path from the compared object to the closest top parent.
-
-
Constructor Summary
Constructors Constructor Description ComparedObjectPath()
Creates empty path.ComparedObjectPath(ComparedObjectPath parentPath, Long bmId, int featureId, int parentFeatureEClassId, int positionInManyFeatureArray)
Creates path for the specified feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getBmId()
Returns bmId of the compared object.List<Integer>
getFullPath()
Builds full path to the compared object.int
getPositionInManyFeatureArray()
Returns object's position in a many-feature array.boolean
isEmpty()
Tells whether this path is empty (not filled by any data).
-
-
-
Constructor Detail
-
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 Detail
-
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
public List<Integer> getFullPath()
Builds full path to the compared object.- Returns:
- the full path from the top object as list of integers, never
null
-
getBmId
public Long getBmId()
Returns bmId of the compared object.- Returns:
- the bmId or
null
-
-