20 package net.sf.gridarta.model.resource;
23 import java.io.IOException;
24 import java.util.ArrayList;
25 import java.util.Collection;
27 import net.
sf.japi.swing.misc.Progress;
28 import org.jetbrains.annotations.NotNull;
40 private final Collection<Collectable>
collectables =
new ArrayList<>();
47 collectables.add(collectable);
56 public void write(@NotNull
final Progress progress, @NotNull
final File collectedDirectory)
throws IOException {
57 for (
final Collectable collectable : collectables) {
58 collectable.collect(progress, collectedDirectory);
Writes resources into a collection.
void addCollectable(@NotNull final Collectable collectable)
Adds a Collectable resource.
A Collectable has information that can be collected.
Base package of all Gridarta classes.
Implements the collection process that combines individual files into collected files which are read ...
void write(@NotNull final Progress progress, @NotNull final File collectedDirectory)
Writes the resources into a collection.
final Collection< Collectable > collectables
All Collectable resources.