Package com.nomagic.magicdraw.uml
Class ClassifierFinder.SimpleNameResolver
java.lang.Object
com.nomagic.magicdraw.uml.ClassifierFinder.SimpleNameResolver
- Enclosing class:
- ClassifierFinder
A resolver of simple classifier name.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Element>
An utility method to return a list of element as candidates for name resolving.resolve
(String name, Collection elementClassTypes, Collection restricted) Resolves given name to a classifierresolveName
(String name) void
void
setPropertyName
(String string)
-
Constructor Details
-
SimpleNameResolver
public SimpleNameResolver()
-
-
Method Details
-
resolve
@CheckForNull public Classifier resolve(String name, Collection elementClassTypes, @CheckForNull Collection restricted) Resolves given name to a classifier- Parameters:
name
- a nameelementClassTypes
- classifier metatypesrestricted
- allowed dsl'ed stereotypes- Returns:
- resolved classifier or null
-
resolveName
-
getCandidates
An utility method to return a list of element as candidates for name resolving. Name resolving uses these elements in first place.- Returns:
- a list of element as candidates for name resolving
-
setOwner
-
setPropertyName
-