Package com._1c.g5.v8.dt.search.core
Class Match
java.lang.Object
com._1c.g5.v8.dt.search.core.Match
- All Implemented Interfaces:
IMatchParentProvider
- Direct Known Subclasses:
BmObjectMatch,BmReferenceMatch,BslReferenceMatch,OutdatedBmModelMatch,TextSearchFileMatch,TextSearchModelMatch
A Model match in a given object. Subclasses must add states to determine element contain the match.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.search.core.provider.IMatchParentProvider
IMatchParentProvider.Factory, IMatchParentProvider.Registry -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ObjectReturns the element that contains this match.longThe top metadata object id that contain matchgetModel()Get parent BM modelinthashCode()booleanReturns whether this match is filtered or not.resolveObjectById(long objectId) Resolve object by bmIdvoidsetFiltered(boolean value) Marks this match as filtered or not.
-
Field Details
-
bmModel
BM container of match
-
-
Constructor Details
-
Match
Constructor- Parameters:
bmModel- container of match, cannot benull
-
-
Method Details
-
getModel
Description copied from interface:IMatchParentProviderGet parent BM model- Specified by:
getModelin interfaceIMatchParentProvider- Returns:
- the BM model contain matched object, never
null
-
isFiltered
public boolean isFiltered()Returns whether this match is filtered or not.- Returns:
trueif the match is filtered, otherwisefalse
-
setFiltered
public void setFiltered(boolean value) Marks this match as filtered or not.- Parameters:
value-trueif the match is filtered, otherwisefalse
-
getMetadataTopObjectId
public long getMetadataTopObjectId()Description copied from interface:IMatchParentProviderThe top metadata object id that contain match- Specified by:
getMetadataTopObjectIdin interfaceIMatchParentProvider- Returns:
- BM id of top metadata object
-
getElement
Returns the element that contains this match. The element is used to group the match.- Returns:
- the element that contains this match, cannot be
null
-
resolveObjectById
Resolve object by bmId- Parameters:
objectId- bmId of resolving object- Returns:
- return the object with the specified ID or empty optional if it does not exist or if engine of BM model is disposed or not in 'running' state
-
hashCode
public int hashCode() -
equals
-