Class AbstractRepository

    • Field Detail

      • interfacePackagePrefixToRefPackage

        protected java.util.Map interfacePackagePrefixToRefPackage
      • interfacePackagePrefixes

        protected java.util.Collection interfacePackagePrefixes
      • mofRepository

        protected com.io_software.catools.tas.mof.TASMofRepository mofRepository
    • Constructor Detail

      • AbstractRepository

        public AbstractRepository()
    • Method Detail

      • isFullPreLoad

        public boolean isFullPreLoad()
        Specified by:
        isFullPreLoad in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • getIDProxy

        public com.dassault_systemes.modeler.foundation.model.IDProxy getIDProxy()
        Specified by:
        getIDProxy in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • setIDProxy

        public void setIDProxy​(com.dassault_systemes.modeler.foundation.model.IDProxy useEsiID)
        Specified by:
        setIDProxy in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • getVersion

        public long getVersion()
        Returns the repository version. It is a number that will be increased after any repository change.
        Returns:
        repository version.
      • nextVersion

        public void nextVersion()
        Sets new repository version.
      • setEventSupport

        protected void setEventSupport​(EventSupport eventSupport)
      • setElementsFactory

        public void setElementsFactory​(ElementsFactory elementsFactory)
      • getElementById

        @CheckForNull
        public javax.jmi.reflect.RefObject getElementById​(java.lang.String id)
        Returns:
        element registered with such id.
      • checkAlive

        protected void checkAlive()
      • isAlive

        public boolean isAlive()
        Returns:
        true if repository is not killed.
      • kill

        public void kill()
        Destroys repository.
      • classProxies

        protected void classProxies()
      • getMofRepository

        public com.io_software.catools.tas.mof.TASMofRepository getMofRepository()
      • createMap

        public java.util.Map createMap​(MapOwner owner,
                                       java.lang.String mapName)
      • getEventSupport

        public EventSupport getEventSupport()
        Specified by:
        getEventSupport in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
        Returns:
        Event support for this repository
      • registerModelElement

        public void registerModelElement​(com.dassault_systemes.modeler.foundation.model.ModelElement element)
        Specified by:
        registerModelElement in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • registerElement

        public void registerElement​(javax.jmi.reflect.RefBaseObject object)
      • getObjectsCount

        public int getObjectsCount()
      • unRegisterModelElement

        public void unRegisterModelElement​(com.dassault_systemes.modeler.foundation.model.ModelElement element)
        Specified by:
        unRegisterModelElement in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • unRegisterElement

        public void unRegisterElement​(javax.jmi.reflect.RefBaseObject object)
      • unRegisterBaseElement

        public boolean unRegisterBaseElement​(BaseElement element)
      • getProject

        public ElementRegistry getProject()
        Specified by:
        getProject in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • setProject

        public void setProject​(ElementRegistry project)
        Specified by:
        setProject in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • refGetEnum

        @CheckForNull
        public javax.jmi.reflect.RefEnum refGetEnum​(java.lang.String enumName,
                                                    java.lang.String args)
        Description copied from class: AbstractRefPackage
        The refGetEnum operation returns the instance of an enumeration (i.e., an enumeration literal) whose value is described by the value of literalName . Note that the type of enumeration is defined by the meta object that owns the metaLiteral object. InvalidCallException is raised if the enumType parameter does not designate a valid enumeration. InvalidNameException is raised when the enumName does not denote a valid enum name. This refGetEnum returns the enumeration object representing the enumeration literal. specific analog: none. return type: RefEnum parameters: RefObject enumType (or String enumName ) String literalName exceptions: JmiException (TypeMismatchException, InvalidCallException, InvalidNameException, java.lang.NullPointerException)
        Specified by:
        refGetEnum in interface javax.jmi.reflect.RefPackage
        Overrides:
        refGetEnum in class AbstractRefPackage
      • getMetamodelProvider

        @CheckForNull
        public com.io_software.catools.tas.mof.TASRepository getMetamodelProvider()
      • getCounter

        public Counter getCounter()
        Standalone repositories (those, having no Project object) can have a separate counter assigned to them.
      • setCounter

        public void setCounter​(Counter count)
        Standalone repositories (those, having no Project object) can have a separate counter assigned to them.
      • canSetID

        public boolean canSetID()
      • setCanSetID

        public void setCanSetID​(boolean canSetID)
        Parameters:
        canSetID - The canSetID to set.
      • getValuesTable

        public com.nomagic.uml2.impl.ValuesTable getValuesTable()
      • invokeAfterTransaction

        public void invokeAfterTransaction​(java.lang.Runnable r)
        If at the current moment firing cached events, running runnable after these events are fired. Running now in other case.
        Parameters:
        r - Runnable to run.
      • isRawMode

        @Deprecated
        public boolean isRawMode()
        Deprecated.
        not used
      • setRawMode

        @Deprecated
        public void setRawMode​(boolean rawMode)
        Deprecated.
        not used
      • addCandidateForDispose

        public void addCandidateForDispose​(javax.jmi.reflect.RefObject object)
      • removeCandidateForDispose

        public void removeCandidateForDispose​(javax.jmi.reflect.RefObject object)
      • addCandidateElementForDispose

        public void addCandidateElementForDispose​(com.dassault_systemes.modeler.foundation.model.ModelElement element)
        Specified by:
        addCandidateElementForDispose in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • removeCandidateElementForDispose

        public void removeCandidateElementForDispose​(com.dassault_systemes.modeler.foundation.model.ModelElement element)
        Specified by:
        removeCandidateElementForDispose in interface com.dassault_systemes.modeler.foundation.model.ModelElementRepository<ElementRegistry,​javax.jmi.reflect.RefObject,​EventSupport>
      • getCandidatesForDispose

        public java.util.Set<javax.jmi.reflect.RefObject> getCandidatesForDispose()
      • clearCandidatesForDispose

        public void clearCandidatesForDispose()