@OpenApiAll
public class ReqIFUtils
extends java.lang.Object
Constructor and Description |
---|
ReqIFUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSourceTool(java.lang.String sourceToolId)
Check if given source tool (ReqIF flavor) is available.
|
static void |
exportReqIFElements(java.io.File file,
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> classes,
java.lang.String sourceToolId,
com.nomagic.task.ProgressStatus progressStatus)
Exports given classes as ReqIF objects.
|
static void |
exportReqIFSpecifications(java.io.File file,
java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Package> specifications,
java.lang.String sourceToolId,
com.nomagic.task.ProgressStatus progressStatus)
Exports given packages as ReqIF specifications.
|
static java.util.Collection<java.lang.String> |
getSourceToolIds()
Get supported ReqIF source tools ids to export to.
|
static void |
importReqIF(java.io.File reqIfFile,
com.nomagic.magicdraw.core.Project project)
Imports ReqIF file.
|
static void |
importReqIF(java.io.File reqIfFile,
com.nomagic.magicdraw.core.Project project,
ReqIFObjectOwnerProvider ownerProvider)
Import ReqIF file.
|
static void |
importReqIFSpecification(java.io.File reqIfFile,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Package specificationPackage)
Imports (updates) ReqIF specification.
|
public static void importReqIF(java.io.File reqIfFile, com.nomagic.magicdraw.core.Project project) throws java.lang.IllegalArgumentException, ReqIFException
reqIfFile
- ReqIF file.project
- project to import to.java.lang.IllegalArgumentException
- if illegal arguments are passed.ReqIFException
- if fails to import ReqIF file.public static void importReqIF(java.io.File reqIfFile, com.nomagic.magicdraw.core.Project project, ReqIFObjectOwnerProvider ownerProvider) throws java.lang.IllegalArgumentException, ReqIFException
reqIfFile
- ReqIF file.project
- project to import to.ownerProvider
- call back to provide an owner element for new ReqIF objects (if objects without specifications are imported).java.lang.IllegalArgumentException
- if illegal arguments are passed.ReqIFException
- if fails to import ReqIF file.public static void importReqIFSpecification(java.io.File reqIfFile, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Package specificationPackage) throws java.lang.IllegalArgumentException
reqIfFile
- ReqIF file.specificationPackage
- specification package to update.java.lang.IllegalArgumentException
- if illegal arguments are passed.public static java.util.Collection<java.lang.String> getSourceToolIds()
public static void exportReqIFSpecifications(java.io.File file, java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Package> specifications, @CheckForNull java.lang.String sourceToolId, com.nomagic.task.ProgressStatus progressStatus) throws java.lang.Exception
file
- destination file.specifications
- specifications to export.sourceToolId
- source tool format.progressStatus
- progress status.java.lang.Exception
- export exception.public static void exportReqIFElements(java.io.File file, java.util.Collection<com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Class> classes, @CheckForNull java.lang.String sourceToolId, com.nomagic.task.ProgressStatus progressStatus) throws java.lang.Exception
file
- destination file.classes
- specifications to export.sourceToolId
- source tool format.progressStatus
- progress status.java.lang.Exception
- export exception.public static void checkSourceTool(@CheckForNull java.lang.String sourceToolId) throws java.lang.IllegalArgumentException
sourceToolId
- source tool to check.java.lang.IllegalArgumentException
- if given source tool is not supported.