Package com.nomagic.uml2.ext.jmi.reflect
Class AbstractRepository
java.lang.Object
com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
com.nomagic.uml2.ext.jmi.reflect.AbstractRefPackage
com.nomagic.uml2.ext.jmi.reflect.AbstractRepository
- All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
,javax.jmi.reflect.RefObject, EventSupport> com.nomagic.uml2.ext.jmi.MapOwner
,AbstractRefBaseObject
,com.nomagic.uml2.ext.jmi.reflect.RepositoryProvider
,javax.jmi.reflect.RefBaseObject
,javax.jmi.reflect.RefPackage
public abstract class AbstractRepository
extends AbstractRefPackage
implements com.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,javax.jmi.reflect.RefObject,EventSupport>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Calculator used in to calculate derived values.static enum
static interface
Candidates for dispose listenerfinal class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection
protected Map
protected com.io_software.catools.tas.mof.TASMofRepository
Fields inherited from class com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
mMetaObject, repository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCalculator
(AbstractRepository.Calculators id, AbstractRepository.Calculator calculator) void
addCandidateElementForDispose
(com.dassault_systemes.modeler.foundation.model.ModelElement element) void
addCandidateForDispose
(javax.jmi.reflect.RefObject object) void
Adds aAbstractRepository.CandidatesForDisposeListener
to get notifications aboutboolean
canSetID()
protected void
protected void
void
getCalculator
(AbstractRepository.Calculators calculatorName) Set<javax.jmi.reflect.RefObject>
com.nomagic.util.Counter
Standalone repositories (those, having no Project object) can have a separate counter assigned to them.javax.jmi.reflect.RefObject
getElementById
(String id) com.dassault_systemes.modeler.foundation.model.IDProxy
com.io_software.catools.tas.mof.TASRepository
com.io_software.catools.tas.mof.TASMofRepository
int
com.nomagic.uml2.ext.jmi.reflect.ElementRegistry
Get repository.com.nomagic.uml2.impl.ValuesTable
long
Returns the repository version.void
If at the current moment firing cached events, running runnable after these events are fired.boolean
isAlive()
boolean
boolean
Deprecated.not usedvoid
kill()
Destroys repository.void
Sets new repository version.javax.jmi.reflect.RefEnum
refGetEnum
(String enumName, String args) The refGetEnum operation returns the instance of an enumeration (i.e., an enumeration literal) whose value is described by the value of literalName .void
registerElement
(javax.jmi.reflect.RefBaseObject object) void
registerModelElement
(com.dassault_systemes.modeler.foundation.model.ModelElement element) void
removeCandidateElementForDispose
(com.dassault_systemes.modeler.foundation.model.ModelElement element) void
removeCandidateForDispose
(javax.jmi.reflect.RefObject object) void
void
setCanSetID
(boolean canSetID) void
setCounter
(com.nomagic.util.Counter count) Standalone repositories (those, having no Project object) can have a separate counter assigned to them.void
setElementsFactory
(ElementsFactory elementsFactory) protected void
setEventSupport
(EventSupport eventSupport) void
setIDProxy
(com.dassault_systemes.modeler.foundation.model.IDProxy useEsiID) void
setProject
(com.nomagic.uml2.ext.jmi.reflect.ElementRegistry project) void
setRawMode
(boolean rawMode) Deprecated.not usedboolean
unRegisterBaseElement
(BaseElement element) void
unRegisterElement
(javax.jmi.reflect.RefBaseObject object) void
unRegisterModelElement
(com.dassault_systemes.modeler.foundation.model.ModelElement element) Methods inherited from class com.nomagic.uml2.ext.jmi.reflect.AbstractRefPackage
addAssociation, addClass, addPackage, getMetaObjects, internalError, refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refPackage, refPackage, removeClass, removePackage
Methods inherited from class com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
mapClear, mapPut, mapPutAll, mapRemove, mof_getRepository, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofID, setOwner, setRefMetaObject, setRepository
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
-
Field Details
-
interfacePackagePrefixToRefPackage
-
interfacePackagePrefixes
-
mofRepository
protected com.io_software.catools.tas.mof.TASMofRepository mofRepository
-
-
Constructor Details
-
AbstractRepository
public AbstractRepository()
-
-
Method Details
-
isFullPreLoad
public boolean isFullPreLoad()- Specified by:
isFullPreLoad
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
getIDProxy
public com.dassault_systemes.modeler.foundation.model.IDProxy getIDProxy()- Specified by:
getIDProxy
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
setIDProxy
public void setIDProxy(com.dassault_systemes.modeler.foundation.model.IDProxy useEsiID) - Specified by:
setIDProxy
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.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
-
getElementsFactory
-
setElementsFactory
-
getElementById
- 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
-
getEventSupport
- Specified by:
getEventSupport
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.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 interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.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 interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
unRegisterElement
public void unRegisterElement(javax.jmi.reflect.RefBaseObject object) -
unRegisterBaseElement
-
getRepository
Description copied from interface:com.nomagic.uml2.ext.jmi.reflect.RepositoryProvider
Get repository.- Specified by:
getRepository
in interfaceAbstractRefBaseObject
- Specified by:
getRepository
in interfacecom.nomagic.uml2.ext.jmi.reflect.RepositoryProvider
- Overrides:
getRepository
in classcom.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
- Returns:
- repository.
-
getProject
public com.nomagic.uml2.ext.jmi.reflect.ElementRegistry getProject()- Specified by:
getProject
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
setProject
public void setProject(com.nomagic.uml2.ext.jmi.reflect.ElementRegistry project) - Specified by:
setProject
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
refGetEnum
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 interfacejavax.jmi.reflect.RefPackage
- Overrides:
refGetEnum
in classAbstractRefPackage
-
getMetamodelProvider
@CheckForNull public com.io_software.catools.tas.mof.TASRepository getMetamodelProvider() -
getCounter
public com.nomagic.util.Counter getCounter()Standalone repositories (those, having no Project object) can have a separate counter assigned to them. -
setCounter
public void setCounter(com.nomagic.util.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
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.not used -
setRawMode
Deprecated.not used -
getTransactionManager
-
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 interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
removeCandidateElementForDispose
public void removeCandidateElementForDispose(com.dassault_systemes.modeler.foundation.model.ModelElement element) - Specified by:
removeCandidateElementForDispose
in interfacecom.dassault_systemes.modeler.foundation.model.ModelElementRepository<com.nomagic.uml2.ext.jmi.reflect.ElementRegistry,
javax.jmi.reflect.RefObject, EventSupport>
-
getCandidatesForDispose
-
clearCandidatesForDispose
public void clearCandidatesForDispose() -
addCandidatesForDisposeListener
public void addCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener) Adds aAbstractRepository.CandidatesForDisposeListener
to get notifications about- Parameters:
listener
- the listener
-
removeCandidatesForDisposeListener
public void removeCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener) -
getCalculator
-
addCalculator
@CheckForNull public AbstractRepository.Calculator addCalculator(AbstractRepository.Calculators id, AbstractRepository.Calculator calculator) - Parameters:
id
- calculator identifier.calculator
- value calculator.- Returns:
- calculator which was registered by same id.
-