public final class CombineArchiveModel extends Object
Constructor and Description |
---|
CombineArchiveModel(File archiveFile) |
Modifier and Type | Method and Description |
---|---|
void |
addEntries(Collection<File> entries) |
void |
addEntry(File entry) |
void |
addEntry(File entry,
boolean makeMain) |
void |
addMetadata(String entry,
Object metadata) |
void |
close() |
void |
close(boolean force) |
void |
deleteEntries(Collection<String> entries) |
void |
deleteEntry(String entry) |
String |
getMainEntry() |
Object |
getMetadata(String entry) |
boolean |
hasMainEntry() |
boolean |
hasUnsavedChanges() |
Collection<?> |
listEntries() |
void |
removeMetadata(Object entry,
Object metadata) |
void |
save() |
void |
saveAs(File newArchiveFile) |
void |
setMainEntry(String entry) |
void |
updateMetadata(Object entry,
Object metadata) |
public CombineArchiveModel(File archiveFile) throws IOException, org.jdom2.JDOMException, ParseException, de.unirostock.sems.cbarchive.CombineArchiveException
archiveFile
- IOException
org.jdom2.JDOMException
ParseException
de.unirostock.sems.cbarchive.CombineArchiveException
public Collection<?> listEntries()
public boolean hasMainEntry()
public String getMainEntry()
public void setMainEntry(String entry)
entry
- public void addEntry(File entry) throws IOException
entry
- IOException
public void addEntry(File entry, boolean makeMain) throws IOException
IOException
public void addEntries(Collection<File> entries) throws IOException
entries
- IOException
public void deleteEntry(String entry) throws IOException
entry
- IOException
public void deleteEntries(Collection<String> entries) throws IOException
entries
- IOException
public boolean hasUnsavedChanges()
public void save() throws IOException, TransformerException
TransformerException
IOException
public void saveAs(File newArchiveFile) throws IOException, TransformerException
newArchiveFile
- TransformerException
IOException
Copyright © 2014. All rights reserved.