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 Detail

      • search

        Optional<T> search​(T source)
        Provides search for the given entity
        Parameters:
        source - the form entity, cannot be null
        Returns:
        source's counterpart or Optional.empty
      • 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, never null
      • 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, never null