Class BmRelatedObjectMatch
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.Match
-
- com._1c.g5.v8.dt.search.core.BmObjectMatch
-
- com._1c.g5.v8.dt.search.core.refs.BmRelatedObjectMatch
-
- All Implemented Interfaces:
IMatchParentProvider
public class BmRelatedObjectMatch extends BmObjectMatch
Minimal representation of finded BM related object
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.search.core.provider.IMatchParentProvider
IMatchParentProvider.Factory, IMatchParentProvider.Registry
-
-
Constructor Summary
Constructors Constructor Description BmRelatedObjectMatch(IBmModel model, long objectId)
Create instance of BM related object matchBmRelatedObjectMatch(IBmModel model, long objectId, BmObjectMatch target)
Create instance of BM based object match
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Optional<BmObjectMatch>
getTarget()
The target object of referenceint
hashCode()
-
Methods inherited from class com._1c.g5.v8.dt.search.core.BmObjectMatch
getElement, getObjectId, resolve
-
Methods inherited from class com._1c.g5.v8.dt.search.core.Match
getMetadataTopObjectId, getModel, isFiltered, resolveObjectById, setFiltered
-
-
-
-
Constructor Detail
-
BmRelatedObjectMatch
public BmRelatedObjectMatch(IBmModel model, long objectId)
Create instance of BM related object match- Parameters:
model
- the BM model contain matched object, cannot benull
objectId
- the match base object ID
-
BmRelatedObjectMatch
public BmRelatedObjectMatch(IBmModel model, long objectId, BmObjectMatch target)
Create instance of BM based object match- Parameters:
model
- the BM model contain matched object, cannot benull
objectId
- the ID of matched objecttarget
- the search target object, can benull
, if has no sence for current search
-
-
Method Detail
-
getTarget
public Optional<BmObjectMatch> getTarget()
The target object of reference- Returns:
- the matched object as target of reference, or empty optional
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBmObjectMatch
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBmObjectMatch
-
-