Package com.nomagic.magicdraw.core.proxy
Interface ProxyManager
-
@OpenApiAll public interface ProxyManager
Manager for working with proxy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.nomagic.ci.persistence.IAttachedProject
getModuleWithMissingShare(com.dassault_systemes.modeler.foundation.model.ModelElement proxy)
Return module in which element exists is not shared, and used by module shared part.java.util.Collection<Element>
getProxies()
Returns all registered proxies.long
getStateId()
Returns state if of proxy manager.boolean
isElementProxy(com.dassault_systemes.modeler.foundation.model.ModelElement el)
Return true if element is proxy.boolean
isGhostProxy(com.dassault_systemes.modeler.foundation.model.ModelElement el)
returns true if proxy was not resolved by loading module.void
makeNotProxy(com.dassault_systemes.modeler.foundation.model.ModelElement element)
Marks element as normal.void
markProxy(com.dassault_systemes.modeler.foundation.model.ModelElement element)
Just marks this element as proxy.
-
-
-
Method Detail
-
isElementProxy
boolean isElementProxy(com.dassault_systemes.modeler.foundation.model.ModelElement el)
Return true if element is proxy. If element is ghost proxy it returns also true.- Parameters:
el
- element to check- Returns:
- true if element is proxy. If element is ghost proxy it returns also true
-
isGhostProxy
boolean isGhostProxy(com.dassault_systemes.modeler.foundation.model.ModelElement el)
returns true if proxy was not resolved by loading module. Method makes sense only when element is proxy.- Parameters:
el
- element to check- Returns:
- true if proxy was not resolved by loading module.
-
getModuleWithMissingShare
@CheckForNull com.nomagic.ci.persistence.IAttachedProject getModuleWithMissingShare(com.dassault_systemes.modeler.foundation.model.ModelElement proxy)
Return module in which element exists is not shared, and used by module shared part.- Parameters:
proxy
- element which is ghost proxy because it is not shared (wrong dependencies on sharing).- Returns:
- module which should share this proxy to make it non proxy.
-
markProxy
void markProxy(com.dassault_systemes.modeler.foundation.model.ModelElement element)
Just marks this element as proxy.- Parameters:
element
- element to mark as proxy
-
makeNotProxy
void makeNotProxy(com.dassault_systemes.modeler.foundation.model.ModelElement element)
Marks element as normal.- Parameters:
element
- element to mark as not proxy
-
getProxies
java.util.Collection<Element> getProxies()
Returns all registered proxies.- Returns:
- proxies
-
getStateId
long getStateId()
Returns state if of proxy manager. Manager state changes if proxies are added or removed.- Returns:
- state if
-
-