Package com.nomagic.magicdraw.core.proxy
Interface ProxyManager
@OpenApiAll
public interface ProxyManager
Manager for working with proxy.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.Returns all registered proxies.long
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 Details
-
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.
-
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
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
-