Class ClassifierFinder.SimpleNameResolver

  • Enclosing class:
    ClassifierFinder

    public static class ClassifierFinder.SimpleNameResolver
    extends java.lang.Object
    A resolver of simple classifier name.
    • 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 classifier
      java.lang.String resolveName​(java.lang.String name)  
      void setOwner​(Element modelElement)  
      void setPropertyName​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleNameResolver

        public SimpleNameResolver()
    • 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 name
        elementClassTypes - classifier metatypes
        restricted - 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)