public class ArchiveImportSpec extends Object
To be valid, an instance of this class must at least define an archive source. If no datasets are specified, then the whole archive content will be imported.
Constructor and Description |
---|
ArchiveImportSpec() |
Modifier and Type | Method and Description |
---|---|
void |
addInstance(AdaptationName aDataSet,
boolean includeAllDescendants)
Adds a dataset to import.
|
Archive |
getArchive()
Returns the archive to import.
|
ArchiveImportSpecMode |
getMode() |
void |
setArchive(Archive archive)
Specifies the archive to import.
|
void |
setMode(ArchiveImportSpecMode mode)
Specifies the import mode.
|
public void addInstance(AdaptationName aDataSet, boolean includeAllDescendants)
aDataSet
- the dataset to be importedincludeAllDescendants
- indicates if the children will be imported if they are not specifiedpublic Archive getArchive()
public void setArchive(Archive archive)
public void setMode(ArchiveImportSpecMode mode)
ArchiveImportSpecMode.DEFAULT
.IllegalArgumentException
- if mode is null
.public ArchiveImportSpecMode getMode()
setMode(ArchiveImportSpecMode)