@OpenApiAll
public abstract class StereotypeByProfileCache
extends com.nomagic.magicdraw.utils.StandardObjectHolder
implements java.beans.PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
protected static class |
StereotypeByProfileCache.AbstractStereotypeWrapper |
protected static class |
StereotypeByProfileCache.IsTypeOfCache |
Modifier | Constructor and Description |
---|---|
protected |
StereotypeByProfileCache(Project prj,
java.lang.String profileName) |
protected |
StereotypeByProfileCache(Project prj,
java.lang.String profileName,
java.lang.String profileURI) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCach() |
protected java.util.Collection<Stereotype> |
generatedGetAllStereotypes()
Generated method for getting all stereotypes contained within this profile.
|
java.util.Collection<Stereotype> |
getAllStereotypes()
Gets all stereotypes contained within this profile.
|
DataType |
getDataType(java.lang.String name) |
Profile |
getProfile() |
Stereotype |
getStereotype(java.lang.String name) |
Stereotype |
getStereotype(java.lang.String name,
java.lang.String profileQName) |
boolean |
isTypeOf(Element element,
Stereotype stereotype)
Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype).
|
boolean |
isTypeOf(Element element,
java.lang.String stereotypeName)
Checks if given Element is type of given Stereotype (has assigned stereotype or some derived stereotype).
|
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
protected StereotypeByProfileCache(Project prj, java.lang.String profileName)
protected StereotypeByProfileCache(Project prj, java.lang.String profileName, java.lang.String profileURI)
@CheckForNull public Stereotype getStereotype(java.lang.String name)
@CheckForNull public DataType getDataType(java.lang.String name)
@CheckForNull public Stereotype getStereotype(java.lang.String name, java.lang.String profileQName)
public Profile getProfile()
public java.util.Collection<Stereotype> getAllStereotypes()
protected java.util.Collection<Stereotype> generatedGetAllStereotypes()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
protected void clearCach()
public boolean isTypeOf(Element element, java.lang.String stereotypeName)
element
- elementstereotypeName
- stereotypepublic boolean isTypeOf(Element element, @CheckForNull Stereotype stereotype)
element
- elementstereotype
- stereotype