Package com.nomagic.uml2.ext.jmi.reflect
Class ModelBridge
- java.lang.Object
-
- com.nomagic.uml2.ext.jmi.reflect.ModelBridge
-
public class ModelBridge extends java.lang.Object
Bridge between UML2 Model and modeling tool.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModelBridge()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAdd(AbstractRefObject abstractRefObject, BaseElement element, boolean checkPermissions)
boolean
canAddChild(AbstractRefObject abstractRefObject)
boolean
canAddChild(AbstractRefObject abstractRefObject, BaseElement o)
boolean
canAddToParent(AbstractRefObject abstractRefObject, java.lang.Class parent)
boolean
canBeDeleted(AbstractRefObject abstractRefObject)
boolean
canChangeElementOwner(com.dassault_systemes.modeler.foundation.model.ModelElement element, com.dassault_systemes.modeler.foundation.model.ModelElement owner, boolean checkPermissions)
boolean
canChangeParent(AbstractRefObject abstractRefObject, java.util.Collection elements, BaseElement newParent)
boolean
canDeleteChild(AbstractRefObject abstractRefObject, BaseElement child)
int
compareTo(AbstractRefObject abstractRefObject, java.lang.Object o)
java.lang.String
generateId(AbstractRefObject abstractRefObject)
static ModelBridge
getBridge()
java.util.List
getDerivedTagValue(com.dassault_systemes.modeler.foundation.model.ModelElement element, Property tag)
RefClassProvider
getDynamicRefClassProvider()
static ModelBridge
getInstance()
org.apache.logging.log4j.Logger
getLog()
AbstractRepository
getRepository(AbstractRefObject abstractRefObject)
boolean
isDeveloper()
boolean
isEditable(AbstractRefObject abstractRefObject)
boolean
isParentOf(AbstractRefObject abstractRefObject, BaseElement obj)
boolean
isRelationship(java.lang.Class classType)
void
refDelete(AbstractRefObject abstractRefObject)
void
removeRelated(AbstractRefObject abstractRefObject)
void
setId(AbstractRefObject abstractRefObject, java.lang.String id)
static void
setInstance(ModelBridge instance)
-
-
-
Method Detail
-
getBridge
@CheckForNull public static ModelBridge getBridge()
-
removeRelated
public void removeRelated(AbstractRefObject abstractRefObject)
-
generateId
public java.lang.String generateId(AbstractRefObject abstractRefObject)
-
refDelete
public void refDelete(AbstractRefObject abstractRefObject)
-
setId
public void setId(AbstractRefObject abstractRefObject, java.lang.String id)
-
canAdd
public boolean canAdd(AbstractRefObject abstractRefObject, BaseElement element, boolean checkPermissions)
-
canDeleteChild
public boolean canDeleteChild(AbstractRefObject abstractRefObject, BaseElement child)
-
canBeDeleted
public boolean canBeDeleted(AbstractRefObject abstractRefObject)
-
canAddToParent
public boolean canAddToParent(AbstractRefObject abstractRefObject, java.lang.Class parent)
-
isEditable
public boolean isEditable(AbstractRefObject abstractRefObject)
-
canAddChild
public boolean canAddChild(AbstractRefObject abstractRefObject, BaseElement o)
-
isParentOf
public boolean isParentOf(AbstractRefObject abstractRefObject, BaseElement obj)
-
canChangeParent
public boolean canChangeParent(AbstractRefObject abstractRefObject, java.util.Collection elements, BaseElement newParent)
-
canAddChild
public boolean canAddChild(AbstractRefObject abstractRefObject)
-
canChangeElementOwner
public boolean canChangeElementOwner(com.dassault_systemes.modeler.foundation.model.ModelElement element, com.dassault_systemes.modeler.foundation.model.ModelElement owner, boolean checkPermissions)
-
isDeveloper
public boolean isDeveloper()
-
isRelationship
public boolean isRelationship(java.lang.Class classType)
-
getDerivedTagValue
@CheckForNull public java.util.List getDerivedTagValue(com.dassault_systemes.modeler.foundation.model.ModelElement element, Property tag)
-
getRepository
public AbstractRepository getRepository(@CheckForNull AbstractRefObject abstractRefObject)
-
getDynamicRefClassProvider
public RefClassProvider getDynamicRefClassProvider()
-
getInstance
public static ModelBridge getInstance()
-
setInstance
public static void setInstance(ModelBridge instance)
-
compareTo
public int compareTo(AbstractRefObject abstractRefObject, java.lang.Object o)
-
getLog
public org.apache.logging.log4j.Logger getLog()
-
-