Class SesameResolver

java.lang.Object
gaiasky.util.SesameResolver

public class SesameResolver extends Object
Queries the Sesame name resolver of the CDS to find out information about an object by its name, asynchronously with respect to the render thread.
  • Method Details

    • resolve

      public static void resolve(String name, BiConsumer<SesameResolver.Result, String> consumer)
      Resolves the given object name in Sesame, and calls the consumer in the render thread. The consumer receives the result, which is null if the object was not found, and an error message, which is null when the query succeeded.
      Parameters:
      name - The object name.
      consumer - The consumer of the result and the error, if any.