Class FinderUtil

java.lang.Object
org.apache.jena.reasoner.FinderUtil

public class FinderUtil extends Object
Some simple helper methods used when working with Finders, particularly to compose them into cascade sequences. The cascades are designed to cope with null Finders as well.
  • Constructor Details

    • FinderUtil

      public FinderUtil()
  • Method Details

    • cascade

      public static Finder cascade(Finder first, Finder second)
      Create a continuation object which is a cascade of two continuation objects.
      Parameters:
      first - the first Graph/Finder to try
      second - the second Graph/Finder to try
    • cascade

      public static Finder cascade(Finder first, Finder second, Finder third)
      Create a continuation object which is a cascade of three continuation objects.
      Parameters:
      first - the first Graph/Finder to try
      second - the second Graph/Finder to try
      third - the third Graph/Finder to try
    • cascade

      public static Finder cascade(Finder first, Finder second, Finder third, Finder fourth)
      Create a continuation object which is a cascade of four continuation objects.
      Parameters:
      first - the first Graph/Finder to try
      second - the second Graph/Finder to try
      third - the third Graph/Finder to try
      fourth - the third Graph/Finder to try