public class WorkspaceToZipModelConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.thoughtworks.xstream.XStream |
xstream |
| Constructor and Description |
|---|
WorkspaceToZipModelConverter() |
| Modifier and Type | Method and Description |
|---|---|
ZipItem |
convert(List<WorkspaceItem> items,
List<String> idsToExclude) |
ZipItem |
convert(WorkspaceItem workspaceItem,
List<String> idsToExclude) |
protected ZipFolder |
convertFolder(WorkspaceFolder workspaceFolder,
List<String> idsToExclude) |
protected ZipItem |
convertFolderItem(FolderItem folderItem,
List<String> idsToExclude) |
protected ZipFile |
convertImage(ZipFolder parent,
Image image) |
protected static String |
getUniqueName(List<String> usedNames,
String name)
Calculates an unique name for the passed name and list of already used names
|
protected com.thoughtworks.xstream.XStream |
getXStream() |
protected com.thoughtworks.xstream.XStream getXStream()
public ZipItem convert(WorkspaceItem workspaceItem, List<String> idsToExclude) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionpublic ZipItem convert(List<WorkspaceItem> items, List<String> idsToExclude) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipFolder convertFolder(WorkspaceFolder workspaceFolder, List<String> idsToExclude) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipItem convertFolderItem(FolderItem folderItem, List<String> idsToExclude) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipFile convertImage(ZipFolder parent, Image image) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionCopyright © 2020. All Rights Reserved.