Class ClassifierFinder.SimpleNameResolver

java.lang.Object
com.nomagic.magicdraw.uml.ClassifierFinder.SimpleNameResolver
Enclosing class:
ClassifierFinder

public abstract static class ClassifierFinder.SimpleNameResolver extends Object
A resolver of simple classifier name.
  • 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 name
      elementClassTypes - classifier metatypes
      restricted - allowed dsl'ed stereotypes
      Returns:
      resolved classifier or null
    • resolveName

      public String resolveName(String name)
    • getCandidates

      public 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(String string)