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 SummaryConstructors Constructor Description ComparedObjectPath()Creates empty path.ComparedObjectPath(ComparedObjectPath parentPath, Long bmId, int featureId, int parentFeatureEClassId, int positionInManyFeatureArray)Creates path for the specified feature.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetBmId()Returns bmId of the compared object.List<Integer>getFullPath()Builds full path to the compared object.intgetPositionInManyFeatureArray()Returns object's position in a many-feature array.booleanisEmpty()Tells whether this path is empty (not filled by any data).
 
- 
- 
- 
Constructor Detail- 
ComparedObjectPathpublic ComparedObjectPath() Creates empty path.
 - 
ComparedObjectPathpublic ComparedObjectPath(ComparedObjectPath parentPath, Long bmId, int featureId, int parentFeatureEClassId, int positionInManyFeatureArray) Creates path for the specified feature.- Parameters:
- parentPath- the parent path, cannot be- null
- bmId- the bmId of the compared object, can be- null
- featureId- the feature id
- parentFeatureEClassId- the eClassId of the feature's parent container
- positionInManyFeatureArray- object's position in the array of the many-feature, can be -1 for single features
 
 
- 
 - 
Method Detail- 
isEmptypublic boolean isEmpty() Tells whether this path is empty (not filled by any data).- Returns:
- trueif the path is empty,- falseotherwise
 
 - 
getPositionInManyFeatureArraypublic 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
 
 - 
getFullPathpublic List<Integer> getFullPath() Builds full path to the compared object.- Returns:
- the full path from the top object as list of integers, never null
 
 - 
getBmIdpublic Long getBmId() Returns bmId of the compared object.- Returns:
- the bmId or null
 
 
- 
 
-