Class EMFNotationModelIndex

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, GModelIndex

    public class EMFNotationModelIndex
    extends EMFModelIndex
    Is used to index all child elements of a semantic and notation model. Offers a set of query methods retrieve, initialize and resolve indexed notation elements.
    • Field Detail

      • LOGGER

        protected static org.apache.logging.log4j.Logger LOGGER
      • notationIndex

        protected com.google.common.collect.BiMap<org.eclipse.emf.ecore.EObject,​NotationElement> notationIndex
    • Constructor Detail

      • EMFNotationModelIndex

        protected EMFNotationModelIndex​(org.eclipse.emf.ecore.EObject target,
                                        EMFSemanticIdConverter idConverter)
    • Method Detail

      • isAdapterForType

        public boolean isAdapterForType​(java.lang.Object type)
        Specified by:
        isAdapterForType in interface org.eclipse.emf.common.notify.Adapter
        Overrides:
        isAdapterForType in class EMFModelIndex
      • indexAll

        public Diagram indexAll​(Diagram diagram,
                                org.eclipse.emf.ecore.EObject semanticModel)
      • getNotation

        public java.util.Optional<NotationElement> getNotation​(org.eclipse.emf.ecore.EObject semanticElement)
      • getNotation

        public <T extends NotationElement> java.util.Optional<T> getNotation​(org.eclipse.emf.ecore.EObject semanticElement,
                                                                             java.lang.Class<T> clazz)
      • getNotation

        public java.util.Optional<NotationElement> getNotation​(java.lang.String id)
      • getNotation

        public <T extends NotationElement> java.util.Optional<T> getNotation​(java.lang.String id,
                                                                             java.lang.Class<T> clazz)
      • indexDiagram

        protected void indexDiagram​(Diagram diagram)
      • indexNotation

        protected void indexNotation​(NotationElement notationElement)
      • resolveDiagram

        protected void resolveDiagram​(Diagram diagram,
                                      org.eclipse.emf.ecore.EObject semanticModel)
      • resolveNotationElement

        protected void resolveNotationElement​(NotationElement notation,
                                              org.eclipse.emf.ecore.EObject semanticModel)
      • findUnresolvedElements

        protected java.util.List<NotationElement> findUnresolvedElements​(Diagram diagram,
                                                                         org.eclipse.emf.ecore.EObject semanticModel)