Class ByName
java.lang.Object
com.dassault_systemes.modeler.kerml.find.AbstractFinder
com.dassault_systemes.modeler.kerml.find.ByName
@OpenApiAll
public class ByName
extends com.dassault_systemes.modeler.kerml.find.AbstractFinder
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.dassault_systemes.modeler.kerml.find.AbstractFinder
find, streamOf
-
Constructor Details
-
ByName
public ByName()
-
-
Method Details
-
find
Finds the first directly ownedElementof the given metaclass whose name is equal to the specified name.- Type Parameters:
T- the specific Element subtype that should be returned- Parameters:
context- the Element whose directly owned Elements are searched;name- the expected name of the Element to find;metaclass- the concreteClassof Element to search for; only instances of this type are considered- Returns:
- the first directly owned Element of type
Twhose name equalsname, ornullif no such Element exists
-