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 IAttachedProject
getModuleWithMissingShare(Element 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(Element el)
Return true if element is proxy.boolean
isGhostProxy(Element el)
returns true if proxy was not resolved by loading module.void
makeNotProxy(Element el)
Marks element as normal.void
markProxy(Element el)
Just marks this element as proxy.
-
-
-
Method Detail
-
isElementProxy
boolean isElementProxy(Element 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(Element 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 IAttachedProject getModuleWithMissingShare(Element 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(Element el)
Just marks this element as proxy.- Parameters:
el
- element to mark as proxy
-
makeNotProxy
void makeNotProxy(Element el)
Marks element as normal.- Parameters:
el
- 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
-
-