Package com._1c.g5.v8.dt.search.core
Class BmObjectMatch
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.Match
-
- com._1c.g5.v8.dt.search.core.BmObjectMatch
-
- All Implemented Interfaces:
IMatchParentProvider
- Direct Known Subclasses:
BmRelatedObjectMatch
public class BmObjectMatch extends Match
Minimal representation of finded BM 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 BmObjectMatch(IBmModel model, long objectId)
Create instance of BM based object match
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Object
getElement()
Returns the element that contains this match.long
getObjectId()
Get the object IDint
hashCode()
Optional<IBmObject>
resolve()
Resolve match object-
Methods inherited from class com._1c.g5.v8.dt.search.core.Match
getMetadataTopObjectId, getModel, isFiltered, resolveObjectById, setFiltered
-
-
-
-
Constructor Detail
-
BmObjectMatch
public BmObjectMatch(IBmModel model, long objectId)
Create instance of BM based object match- Parameters:
model
- the BM model contain matched object, cannot benull
objectId
- the match object ID
-
-
Method Detail
-
getObjectId
public long getObjectId()
Get the object ID- Returns:
- the matched object ID
-
getElement
public Object getElement()
Description copied from class:Match
Returns the element that contains this match. The element is used to group the match.- Specified by:
getElement
in classMatch
- Returns:
- the element that contains this match, cannot be
null
-
resolve
public Optional<IBmObject> resolve()
Resolve match object- Returns:
- return the object with the specified ID or
null
if it does not exist. - Throws:
IllegalStateException
- if engine of BM model is disposed or not in 'running' state
-
-