Class BmReferenceMatch
java.lang.Object
com._1c.g5.v8.dt.search.core.Match
com._1c.g5.v8.dt.search.core.refs.BmReferenceMatch
- All Implemented Interfaces:
IMatchParentProvider
Minimal representation of finded reference between BM objects
-
Nested Class Summary
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.search.core.provider.IMatchParentProvider
IMatchParentProvider.Factory, IMatchParentProvider.Registry -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBmReferenceMatch(BmObjectMatch source, org.eclipse.emf.ecore.EStructuralFeature feature) Create instance of BM based reference matchBmReferenceMatch(BmObjectMatch source, org.eclipse.emf.ecore.EStructuralFeature feature, BmObjectMatch target) Create instance of BM based reference match -
Method Summary
Methods inherited from class com._1c.g5.v8.dt.search.core.Match
getMetadataTopObjectId, isFiltered, resolveObjectById, setFiltered
-
Constructor Details
-
BmReferenceMatch
Create instance of BM based reference match- Parameters:
source- the matched object as source of reference, cannot benullfeature- the reference from source object, cannot benull
-
BmReferenceMatch
public BmReferenceMatch(BmObjectMatch source, org.eclipse.emf.ecore.EStructuralFeature feature, BmObjectMatch target) Create instance of BM based reference match- Parameters:
source- the matched object as source of reference, cannot benullfeature- the reference from source object, cannot benulltarget- the match object as target of reference, can benull
-
-
Method Details
-
getSource
The source object of reference- Returns:
- the matched object as source of reference, cannot be
null
-
getTarget
The target object of reference- Returns:
- the matched object as target of reference, or empty optional
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()The reference from source to target object- Returns:
- the feature
-
getElement
Description copied from class:MatchReturns the element that contains this match. The element is used to group the match.- Specified by:
getElementin classMatch- Returns:
- the element that contains this match, cannot be
null
-
getModel
Description copied from interface:IMatchParentProviderGet parent BM model- Specified by:
getModelin interfaceIMatchParentProvider- Overrides:
getModelin classMatch- Returns:
- the BM model contain matched object, never
null
-
hashCode
public int hashCode() -
equals
-