public static class StereotypesHelper.StereotypesHelperCache
extends com.nomagic.magicdraw.utils.CompositeProjectCache
Modifier and Type | Field and Description |
---|---|
com.nomagic.utils.DisableableCache<java.lang.String,java.util.List<Model>> |
mAllMetaModels |
com.nomagic.utils.DisableableCache<Stereotype,java.util.Set<Element>> |
mExtendedElementsIncludingDerived |
com.nomagic.utils.DisableableCache<java.lang.String,Class> |
mMetaClassByName |
com.nomagic.utils.DisableableCache<java.lang.String,Package> |
mPackageByName |
com.nomagic.utils.DisableableCache<java.lang.String,java.util.List<Profile>> |
mProfilesByName |
com.nomagic.utils.DisableableCache<Stereotype,java.util.List<Property>> |
mPropertiesWithDerivedOrdered |
com.nomagic.utils.DisableableCache<Stereotype,java.util.List<Property>> |
mPropertiesWithDerivedOrderedIncludingExtensions |
com.nomagic.utils.DisableableCache<java.lang.String,java.lang.Object> |
mPropertyByNameCache |
com.nomagic.utils.DisableableCache<java.lang.String,java.lang.Object> |
mStereotypeByNameInProfile |
com.nomagic.utils.DisableableCache<Stereotype,Package> |
mStereotypeByProfile |
(package private) static java.lang.Object |
NULL_OBJECT |
Constructor and Description |
---|
StereotypesHelperCache(Project p) |
Modifier and Type | Method and Description |
---|---|
void |
disableModelChangeValidator() |
void |
enableModelChangeValidator() |
static StereotypesHelper.StereotypesHelperCache |
getInstance(Project prj) |
Property |
getPropertyByName(Stereotype element,
java.lang.String propertyName)
Returns property of classifier by name
|
(package private) java.util.Set<Stereotype> |
getSettableStereotypes(java.lang.String elementType,
boolean includeSuperTypes) |
boolean |
isEnabledValidation() |
(package private) void |
setSettableStereotypes(java.lang.String elementType,
boolean includeSuperTypes,
java.util.Set<Stereotype> stereotypes) |
createCache, disableCahe, enableCache, invalidateCache
addValidator, removeValidator, resetCachedObjects
static java.lang.Object NULL_OBJECT
public final com.nomagic.utils.DisableableCache<java.lang.String,Class> mMetaClassByName
public final com.nomagic.utils.DisableableCache<java.lang.String,java.util.List<Profile>> mProfilesByName
public final com.nomagic.utils.DisableableCache<java.lang.String,java.util.List<Model>> mAllMetaModels
public final com.nomagic.utils.DisableableCache<java.lang.String,java.lang.Object> mStereotypeByNameInProfile
public final com.nomagic.utils.DisableableCache<java.lang.String,Package> mPackageByName
public final com.nomagic.utils.DisableableCache<Stereotype,java.util.List<Property>> mPropertiesWithDerivedOrderedIncludingExtensions
public final com.nomagic.utils.DisableableCache<Stereotype,java.util.List<Property>> mPropertiesWithDerivedOrdered
public final com.nomagic.utils.DisableableCache<java.lang.String,java.lang.Object> mPropertyByNameCache
public final com.nomagic.utils.DisableableCache<Stereotype,Package> mStereotypeByProfile
public final com.nomagic.utils.DisableableCache<Stereotype,java.util.Set<Element>> mExtendedElementsIncludingDerived
public StereotypesHelperCache(Project p)
public static StereotypesHelper.StereotypesHelperCache getInstance(Project prj)
public void disableModelChangeValidator()
public boolean isEnabledValidation()
public void enableModelChangeValidator()
java.util.Set<Stereotype> getSettableStereotypes(java.lang.String elementType, boolean includeSuperTypes)
void setSettableStereotypes(java.lang.String elementType, boolean includeSuperTypes, java.util.Set<Stereotype> stereotypes)
@CheckForNull public Property getPropertyByName(Stereotype element, java.lang.String propertyName)
element
- element to get property frompropertyName
- name of the property