public final class ReqIFArchiveManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCHIVE_DEFAULT_EXTENSION |
static java.lang.String[] |
SUPPORTED_ARCHIVE_EXTENSIONS |
Constructor and Description |
---|
ReqIFArchiveManager() |
Modifier and Type | Method and Description |
---|---|
static ReqIFArchive |
createArchive()
Creates an instance of this class.
|
static ReqIFArchive |
load(java.lang.String path,
java.util.function.Consumer<ValidationMessage> validationMessageConsumer)
Loads a ReqIF archive from disk.
|
public static final java.lang.String ARCHIVE_DEFAULT_EXTENSION
public static final java.lang.String[] SUPPORTED_ARCHIVE_EXTENSIONS
public static ReqIFArchive createArchive() throws com.reqdesign.reqif.LicenseException, FileException
For ReqIF files created from scratch, there are some restrictions on functionality until the ReqIF file is saved
to disk with ReqIFArchive.saveAs(String, Consumer)
. For example, you can't add XHTML content that references
external files until a load or save operation has occurred. This will provide the anchor point for the referenced files relative paths.
ReqIFArchive
object, not nullFileException
- if a temp archive could not be createdLicenseException
- if the REQIFdev license is missing or invalidpublic static ReqIFArchive load(java.lang.String path, java.util.function.Consumer<ValidationMessage> validationMessageConsumer) throws FileException, com.reqdesign.reqif.LicenseException
path
- the full path to the .reqifz archive file, not nullvalidationMessageConsumer
- a consumer of validation message objects ValidationMessage
, not nullReqIFArchive
object, not nullFileException
- if the specified path is not an archiveLicenseException
- if the REQIFdev license is missing or invalid