java.lang.Object
com.dassault_systemes.modeler.kerml.find.Finder

@OpenApiAll public final class Finder extends Object
Utility class for providing access to various finders.

This utility class provides a set of preconfigured, stateless finder implementations used to locate Element instances within a model. Each finder encapsulates a specific lookup strategy (e.g., by name, declared name, qualified name, predicate, or by EClass recursively).

  • Method Details

    • byName

      public static ByName byName()
      Returns a finder that locates elements by their name among the direct owned elements of a given context.
      Returns:
      shared ByName finder instance
    • byDeclaredName

      public static ByDeclaredName byDeclaredName()
      Returns a finder that locates elements by their declared name among the direct owned elements of a given context.
      Returns:
      shared ByDeclaredName finder instance
    • byPredicate

      public static ByPredicate byPredicate()
      Returns a generic finder that locates elements using an arbitrary predicate evaluated over the direct owned elements of a given context.
      Returns:
      shared ByPredicate finder instance
    • byQualifiedName

      public static ByQualifiedName byQualifiedName()
      Returns a finder that locates elements by their qualified name.
      Returns:
      shared ByQualifiedName finder instance
    • byEClassRecursively

      public static ByEClassRecursively byEClassRecursively()
      Returns a finder that locates elements by their EClass recursively in a project or collection of roots.
      Returns:
      shared ByEClassRecursively finder instance