Package com.nomagic.magicdraw.uml
Class ClassifierFinder.SimpleNameResolver
- java.lang.Object
-
- com.nomagic.magicdraw.uml.ClassifierFinder.SimpleNameResolver
-
- Enclosing class:
- ClassifierFinder
public static class ClassifierFinder.SimpleNameResolver extends java.lang.Object
A resolver of simple classifier name.
-
-
Constructor Summary
Constructors Constructor Description SimpleNameResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends Element>
getCandidates()
An utility method to return a list of element as candidates for name resolving.Classifier
resolve(java.lang.String name, java.util.Collection elementClassTypes, java.util.Collection restricted)
Resolves given name to a classifierjava.lang.String
resolveName(java.lang.String name)
void
setOwner(Element modelElement)
void
setPropertyName(java.lang.String string)
-
-
-
Method Detail
-
resolve
@CheckForNull public Classifier resolve(java.lang.String name, java.util.Collection elementClassTypes, @CheckForNull java.util.Collection restricted)
Resolves given name to a classifier- Parameters:
name
- a nameelementClassTypes
- classifier metatypesrestricted
- allowed dsl'ed stereotypes- Returns:
- resolved classifier or null
-
resolveName
public java.lang.String resolveName(java.lang.String name)
-
getCandidates
public java.util.Collection<? extends Element> 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
public void setOwner(Element modelElement)
-
setPropertyName
public void setPropertyName(java.lang.String string)
-
-