Class SearchObjectResolver.BasicResolver

  • All Implemented Interfaces:
    SearchObjectResolver
    Enclosing interface:
    SearchObjectResolver

    public static final class SearchObjectResolver.BasicResolver
    extends Object
    implements SearchObjectResolver
    All-purpose, unrestricted implementation of the resolver. Generally, we shall strive to limit resolver to searched model/module/node only, however, with 2017.1 on my neck, I don't want to bother with limitations nobody cares about anyway.
    • Method Detail

      • resolve

        @Nullable
        public SModel resolve​(@NotNull
                              SModelReference reference)
        Description copied from interface: SearchObjectResolver
        Finder may use this method to go from model reference as a search value to SModel object. Find Usages client may use this method to limit what's visible/accessible to a Finder.
        Specified by:
        resolve in interface SearchObjectResolver
        Parameters:
        reference - model to resolve
        Returns:
        model instance, or null if model with specified reference is not available
      • resolve

        @Nullable
        public SModule resolve​(@NotNull
                               SModuleReference reference)
        Description copied from interface: SearchObjectResolver
        Finder may use this method to go from module reference as a seatch value to SModule object. Find Usages client may use this method to limit what's visible/accessible to a Finder.
        Specified by:
        resolve in interface SearchObjectResolver
        Parameters:
        reference - module to resolve
        Returns:
        module instance, or null if there's no such module
      • resolve

        @Nullable
        public SNode resolve​(@NotNull
                             SNodeReference reference)
        Description copied from interface: SearchObjectResolver
        Finder may use this method to go from model reference as a search value to SNode object. Find Usages client may use this method to limit what's visible/accessible to a Finder.
        Specified by:
        resolve in interface SearchObjectResolver
        Parameters:
        reference - node to resolve
        Returns:
        node instance of null if the node is unknown