Package com._1c.g5.v8.dt.form.service
Interface IFormEntityCounterpartSearcher<T extends org.eclipse.emf.ecore.EObject>
-
public interface IFormEntityCounterpartSearcher<T extends org.eclipse.emf.ecore.EObject>
Form entity counterpart searcher.The counterpart entity is only acceptable for extension project. The counterpart for some form-related object is it copy from Form.baseForm.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<T>
search(T source)
Provides search for the given entityIFormEntityCounterpartSearcher<T>
withFormEntityIndexFilter(Predicate<T> predicate)
Sets form entity filter.IFormEntityCounterpartSearcher<T>
withFullSearch(boolean isFullSearch)
Sets full search flag.IFormEntityCounterpartSearcher<T>
withIndexSensitive(boolean isIndexSensitive)
Sets index sensitive flag.IFormEntityCounterpartSearcher<T>
withOnlyLastIndexSensitive(boolean isLastIndexSensitive)
Sets last index sensitive flag.
-
-
-
Method Detail
-
search
Optional<T> search(T source)
Provides search for the given entity- Parameters:
source
- the form entity, cannot benull
- Returns:
- source's counterpart or
Optional.empty
-
withIndexSensitive
IFormEntityCounterpartSearcher<T> withIndexSensitive(boolean isIndexSensitive)
Sets index sensitive flag. Searcher will use indices during entity lookup.- Parameters:
isIndexSensitive
- index sensitive flag- Returns:
IFormEntityCounterpartSearcher
instance, nevernull
-
withOnlyLastIndexSensitive
IFormEntityCounterpartSearcher<T> withOnlyLastIndexSensitive(boolean isLastIndexSensitive)
Sets last index sensitive flag. Searcher will use only last object index during entity lookup. Other indices will be ignored. That allow to search the form entity counterpart in case when it's container has been moved to another position in the same parent.- Parameters:
isLastIndexSensitive
- last index sensitive flag- Returns:
IFormEntityCounterpartSearcher
instance, nevernull
-
withFormEntityIndexFilter
IFormEntityCounterpartSearcher<T> withFormEntityIndexFilter(Predicate<T> predicate)
Sets form entity filter.- Parameters:
predicate
- form entity filter, can't benull
- Returns:
IFormEntityCounterpartSearcher
instance, nevernull
-
withFullSearch
IFormEntityCounterpartSearcher<T> withFullSearch(boolean isFullSearch)
Sets full search flag. That significantly increases complexity of the searcher algorithm. Could be used to find form's moved entity.- Parameters:
isFullSearch
- full search flag- Returns:
IFormEntityCounterpartSearcher
instance, nevernull
-
-