Class QualifiedNameListener

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener

    class QualifiedNameListener
    extends java.lang.Object
    implements java.beans.PropertyChangeListener
    Listens to model changes and fires PropertyNames.QUALIFIED_NAME events
    • Method Detail

      • registerNonMaskedPropertyChangeEventListener

        private void registerNonMaskedPropertyChangeEventListener​(AbstractRepository repository)
      • propertyChange

        public void propertyChange​(java.beans.PropertyChangeEvent evt)
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • getQualifiedName

        @CheckForNull
        private static java.lang.String getQualifiedName​(Element e)
      • findNamedElementParent

        @CheckForNull
        private static Element findNamedElementParent​(Element e)
      • setDirty

        public void setDirty​(boolean dirty)
      • isDirty

        public boolean isDirty()
      • getElementWithOwners

        private java.util.Set<Element> getElementWithOwners()
      • notifyChildren

        private void notifyChildren​(Element source,
                                    @CheckForNull
                                    java.lang.String qNameOld,
                                    @CheckForNull
                                    java.lang.String qNameNew)
      • getOldQualifiedName

        @CheckForNull
        private static java.lang.String getOldQualifiedName​(Element source,
                                                            @CheckForNull
                                                            java.lang.String qNameOld,
                                                            @CheckForNull
                                                            java.lang.String qNameNew,
                                                            NamedElement element,
                                                            java.lang.String newName)
      • getNamespaceForQualifiedName

        @CheckForNull
        private static Namespace getNamespaceForQualifiedName​(NamedElement element)
        Returns namespace which name should be used as a part of the element's qualified name.
        Parameters:
        element - an element.
        Returns:
        namespace.
      • updateTree

        private void updateTree()