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
public class BmReferenceMatch extends Match
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
-
-
Constructor Summary
Constructors Constructor Description BmReferenceMatch(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Object
getElement()
Returns the element that contains this match.org.eclipse.emf.ecore.EStructuralFeature
getFeature()
The reference from source to target objectIBmModel
getModel()
Get parent BM modelBmObjectMatch
getSource()
The source object of referenceOptional<BmObjectMatch>
getTarget()
The target object of referenceint
hashCode()
-
Methods inherited from class com._1c.g5.v8.dt.search.core.Match
getMetadataTopObjectId, isFiltered, resolveObjectById, setFiltered
-
-
-
-
Constructor Detail
-
BmReferenceMatch
public BmReferenceMatch(BmObjectMatch source, org.eclipse.emf.ecore.EStructuralFeature feature)
Create instance of BM based reference match- Parameters:
source
- the matched object as source of reference, cannot benull
feature
- 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 benull
feature
- the reference from source object, cannot benull
target
- the match object as target of reference, can benull
-
-
Method Detail
-
getSource
public BmObjectMatch getSource()
The source object of reference- Returns:
- the matched object as source of reference, cannot be
null
-
getTarget
public Optional<BmObjectMatch> 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
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
-
getModel
public IBmModel getModel()
Description copied from interface:IMatchParentProvider
Get parent BM model- Specified by:
getModel
in interfaceIMatchParentProvider
- Overrides:
getModel
in classMatch
- Returns:
- the BM model contain matched object, never
null
-
-