Class Finder
java.lang.Object
com.dassault_systemes.modeler.kerml.find.Finder
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 Summary
Modifier and TypeMethodDescriptionstatic ByDeclaredNameReturns a finder that locates elements by their declared name among the direct owned elements of a given context.static ByEClassRecursivelyReturns a finder that locates elements by theirEClassrecursively in a project or collection of roots.static ByNamebyName()Returns a finder that locates elements by their name among the direct owned elements of a given context.static ByPredicateReturns a generic finder that locates elements using an arbitrary predicate evaluated over the direct owned elements of a given context.static ByQualifiedNameReturns a finder that locates elements by their qualified name.
-
Method Details
-
byName
Returns a finder that locates elements by their name among the direct owned elements of a given context.- Returns:
- shared
ByNamefinder instance
-
byDeclaredName
Returns a finder that locates elements by their declared name among the direct owned elements of a given context.- Returns:
- shared
ByDeclaredNamefinder instance
-
byPredicate
Returns a generic finder that locates elements using an arbitrary predicate evaluated over the direct owned elements of a given context.- Returns:
- shared
ByPredicatefinder instance
-
byQualifiedName
Returns a finder that locates elements by their qualified name.- Returns:
- shared
ByQualifiedNamefinder instance
-
byEClassRecursively
Returns a finder that locates elements by theirEClassrecursively in a project or collection of roots.- Returns:
- shared
ByEClassRecursivelyfinder instance
-