Class ModulesService.UsedViaReadOnlyAutomaticUsageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nomagic.magicdraw.core.modules.ModulesService.UsedViaReadOnlyAutomaticUsageException
- All Implemented Interfaces:
Serializable
- Enclosing class:
ModulesService
Thrown when module(s) can not be removed due to all paths from primary
project to it contains a read only
automatic usage- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUsedViaReadOnlyAutomaticUsageException(Map<com.nomagic.ci.persistence.IProject, Set<com.nomagic.ci.persistence.IProject>> usagesMap) Creates new instance ofModulesService.UsedViaReadOnlyAutomaticUsageException -
Method Summary
Modifier and TypeMethodDescriptionSet<com.nomagic.ci.persistence.IProject> getAttachedProjects(com.nomagic.ci.persistence.IProject attachingProject) Gets all attached projects for the given attaching project.Set<com.nomagic.ci.persistence.IProject> Gets all attaching projects.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UsedViaReadOnlyAutomaticUsageException
public UsedViaReadOnlyAutomaticUsageException(Map<com.nomagic.ci.persistence.IProject, Set<com.nomagic.ci.persistence.IProject>> usagesMap) Creates new instance ofModulesService.UsedViaReadOnlyAutomaticUsageException- Parameters:
usagesMap- The collection of offending read-only automatic usages
-
-
Method Details
-
getAttachingProjects
Gets all attaching projects.- Returns:
- collection of attaching projects
-
getAttachedProjects
public Set<com.nomagic.ci.persistence.IProject> getAttachedProjects(com.nomagic.ci.persistence.IProject attachingProject) Gets all attached projects for the given attaching project.- Parameters:
attachingProject- the project to get attached projects for- Returns:
- collection of attached projects for the given project
-