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(WorkspaceItem workspaceItem) |
protected ZipFolder |
convertFolder(WorkspaceFolder workspaceFolder) |
protected ZipItem |
convertFolderItem(FolderItem folderItem) |
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) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipFolder convertFolder(WorkspaceFolder workspaceFolder) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipItem convertFolderItem(FolderItem folderItem) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionprotected ZipFile convertImage(ZipFolder parent, Image image) throws InternalErrorException, IOException
InternalErrorExceptionIOExceptionCopyright © 2015. All Rights Reserved.