public abstract class AbstractRepository extends AbstractRefPackage
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractRepository.Calculator
Calculator used in to calculate derived values.
|
static class |
AbstractRepository.Calculators |
static interface |
AbstractRepository.CandidatesForDisposeListener
Candidates for dispose listener
|
static interface |
AbstractRepository.IDProxy |
class |
AbstractRepository.MofRepository |
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection |
interfacePackagePrefixes |
protected java.util.Map |
interfacePackagePrefixToRefPackage |
protected com.io_software.catools.tas.mof.TASMofRepository |
mofRepository |
Constructor and Description |
---|
AbstractRepository() |
Modifier and Type | Method and Description |
---|---|
AbstractRepository.Calculator |
addCalculator(AbstractRepository.Calculators id,
AbstractRepository.Calculator calculator) |
void |
addCandidateForDispose(javax.jmi.reflect.RefObject object) |
void |
addCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener)
Adds a
AbstractRepository.CandidatesForDisposeListener to get notifications about |
boolean |
canSetID() |
protected void |
checkAlive() |
protected void |
classProxies() |
void |
clearCandidatesForDispose() |
java.util.Collection |
createInstancesCollection(com.nomagic.uml2.ext.jmi.ListOwner owner,
java.lang.String name) |
java.util.Map |
createMap(com.nomagic.uml2.ext.jmi.MapOwner owner,
java.lang.String mapName) |
AbstractRepository.Calculator |
getCalculator(AbstractRepository.Calculators calculatorName) |
java.util.Set<javax.jmi.reflect.RefObject> |
getCandidatesForDispose() |
com.nomagic.utils.Counter |
getCounter()
Standalone repositories (those, having no Project object)
can have a separate counter assigned to them.
|
javax.jmi.reflect.RefObject |
getElementById(java.lang.String id) |
ElementsFactory |
getElementsFactory() |
com.nomagic.uml2.ext.jmi.EventSupport |
getEventSupport() |
AbstractRepository.IDProxy |
getIDProxy() |
com.io_software.catools.tas.mof.TASRepository |
getMetamodelProvider() |
com.io_software.catools.tas.mof.TASMofRepository |
getMofRepository() |
int |
getObjectsCount() |
com.nomagic.uml2.ext.jmi.reflect.ElementRegistry |
getProject() |
AbstractRepository |
getRepository() |
TransactionManager |
getTransactionManager() |
ModelListener |
getTransactionModelListener() |
com.nomagic.uml2.impl.ValuesTable |
getValuesTable() |
void |
invokeAfterTransaction(java.lang.Runnable r)
If at the current moment firing cached events, running runnable after these events are fired.
|
boolean |
isAlive() |
boolean |
isFullPreLoad() |
boolean |
isRawMode()
Raw mode is when binary associations is not synchronized.
|
void |
kill()
Destroys repository.
|
javax.jmi.reflect.RefEnum |
refGetEnum(java.lang.String enumName,
java.lang.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 |
removeCandidateForDispose(javax.jmi.reflect.RefObject object) |
void |
removeCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener) |
void |
setCanSetID(boolean canSetID) |
void |
setCounter(com.nomagic.utils.Counter count)
Standalone repositories (those, having no Project object)
can have a separate counter assigned to them.
|
void |
setElementsFactory(ElementsFactory elementsFactory) |
protected void |
setEventSupport(com.nomagic.uml2.ext.jmi.EventSupport eventSupport) |
void |
setIDProxy(AbstractRepository.IDProxy useEsiID) |
void |
setProject(com.nomagic.uml2.ext.jmi.reflect.ElementRegistry project) |
void |
setRawMode(boolean rawMode)
Raw mode is when binary associations is not synchronized.
|
void |
setTransactionManager(TransactionManager modelTransactionImpl) |
void |
setTransactionModelListener(ModelListener listener) |
void |
unRegisterElement(javax.jmi.reflect.RefBaseObject object) |
addAssociation, addClass, addPackage, getMetaObjects, internalError, refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refPackage, refPackage, removeClass, removePackage
mapClear, mapPut, mapPutAll, mapRemove, mof_getRepository, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofID, setOwner, setRefMetaObject, setRepository
protected java.util.Map interfacePackagePrefixToRefPackage
protected java.util.Collection interfacePackagePrefixes
protected com.io_software.catools.tas.mof.TASMofRepository mofRepository
public boolean isFullPreLoad()
public AbstractRepository.IDProxy getIDProxy()
public void setIDProxy(AbstractRepository.IDProxy useEsiID)
protected void setEventSupport(com.nomagic.uml2.ext.jmi.EventSupport eventSupport)
public ElementsFactory getElementsFactory()
public void setElementsFactory(ElementsFactory elementsFactory)
public void setTransactionManager(TransactionManager modelTransactionImpl)
@CheckForNull public javax.jmi.reflect.RefObject getElementById(java.lang.String id)
protected void checkAlive()
public boolean isAlive()
public void kill()
protected void classProxies()
public com.io_software.catools.tas.mof.TASMofRepository getMofRepository()
public java.util.Map createMap(com.nomagic.uml2.ext.jmi.MapOwner owner, java.lang.String mapName)
public java.util.Collection createInstancesCollection(com.nomagic.uml2.ext.jmi.ListOwner owner, java.lang.String name)
public com.nomagic.uml2.ext.jmi.EventSupport getEventSupport()
public void registerElement(javax.jmi.reflect.RefBaseObject object)
public int getObjectsCount()
public void unRegisterElement(javax.jmi.reflect.RefBaseObject object)
public AbstractRepository getRepository()
getRepository
in interface AbstractRefBaseObject
getRepository
in interface com.nomagic.uml2.ext.jmi.reflect.RepositoryProvider
getRepository
in class com.nomagic.uml2.ext.jmi.reflect.AbstractRefBaseObjectImpl
public com.nomagic.uml2.ext.jmi.reflect.ElementRegistry getProject()
public void setProject(com.nomagic.uml2.ext.jmi.reflect.ElementRegistry project)
@CheckForNull public javax.jmi.reflect.RefEnum refGetEnum(java.lang.String enumName, java.lang.String args)
AbstractRefPackage
refGetEnum
in interface javax.jmi.reflect.RefPackage
refGetEnum
in class AbstractRefPackage
public com.io_software.catools.tas.mof.TASRepository getMetamodelProvider()
public com.nomagic.utils.Counter getCounter()
public void setCounter(com.nomagic.utils.Counter count)
public boolean canSetID()
public void setCanSetID(boolean canSetID)
canSetID
- The canSetID to set.public com.nomagic.uml2.impl.ValuesTable getValuesTable()
public void invokeAfterTransaction(java.lang.Runnable r)
r
- Runnable
to run.public boolean isRawMode()
public void setRawMode(boolean rawMode)
rawMode
- new RawModeValue.public ModelListener getTransactionModelListener()
public TransactionManager getTransactionManager()
public void setTransactionModelListener(ModelListener listener)
public void addCandidateForDispose(javax.jmi.reflect.RefObject object)
public void removeCandidateForDispose(javax.jmi.reflect.RefObject object)
public java.util.Set<javax.jmi.reflect.RefObject> getCandidatesForDispose()
public void clearCandidatesForDispose()
public void addCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener)
AbstractRepository.CandidatesForDisposeListener
to get notifications aboutlistener
- the listenerpublic void removeCandidatesForDisposeListener(AbstractRepository.CandidatesForDisposeListener listener)
public AbstractRepository.Calculator getCalculator(AbstractRepository.Calculators calculatorName)
public AbstractRepository.Calculator addCalculator(AbstractRepository.Calculators id, AbstractRepository.Calculator calculator)
id
- calculator identifier.calculator
- value calculator.