source: vlo/trunk/vlo_webapp/src/main/java/eu/clarin/cmdi/vlo/importer/ImporterConfig.java @ 2373

Last change on this file since 2373 was 2373, checked in by herste, 12 years ago

some comments

File size: 1.2 KB
Line 
1package eu.clarin.cmdi.vlo.importer;
2
3import java.util.List;
4
5/**
6 * Represents the configuration of the metadata importer.
7 */
8
9public class ImporterConfig {
10
11    /**
12     * default location of config file.
13     */
14    public static final String CONFIG_FILE = "importerConfig.xml";
15
16    /**
17     * whether to delete all.
18     */
19    private boolean deleteAllFirst = false;
20
21    /**
22     * whether to print all xpath mappings found (to a file).
23     */
24    private boolean printMapping = false;
25
26    /**
27     * The list of all DataRoots (which define a directory to search for metadata files and some other things)
28     */
29    private List<DataRoot> dataRoots;
30
31    // Getters and Setters below.
32
33
34    public List<DataRoot> getDataRoots() {
35        return dataRoots;
36    }
37
38    public void setDataRoots(List<DataRoot> dataRoots) {
39        this.dataRoots = dataRoots;
40    }
41
42    public void setDeleteAllFirst(boolean deleteAllFirst) {
43        this.deleteAllFirst = deleteAllFirst;
44    }
45
46    public boolean isDeleteAllFirst() {
47        return deleteAllFirst;
48    }
49
50    public void setPrintMapping(boolean printMapping) {
51        this.printMapping = printMapping;
52    }
53
54    public boolean isPrintMapping() {
55        return printMapping;
56    }
57
58}
Note: See TracBrowser for help on using the repository browser.