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
  • Constructor Details

    • BmObjectMatch

      public BmObjectMatch(IBmModel model, long objectId)
      Create instance of BM based object match
      Parameters:
      model - the BM model contain matched object, cannot be null
      objectId - the match object ID
  • Method Details

    • 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 class Match
      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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Match
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Match