comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/state/Settings.java @ 473:d0ac790a6c89 dive4elements-move

Moved directories to org.dive4elements
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 10:57:18 +0200
parents artifact-database/src/main/java/de/intevation/artifactdatabase/state/Settings.java@f93edbfcf2bc
children 415df0fc4fa1
comparison
equal deleted inserted replaced
472:783cc1b6b615 473:d0ac790a6c89
1 package de.intevation.artifactdatabase.state;
2
3 import java.io.Serializable;
4
5 import org.w3c.dom.Node;
6
7
8 /**
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
10 */
11 public interface Settings extends Serializable {
12
13 /**
14 * Adds a new Section to this Settings object.
15 *
16 * @param section the new Section.
17 */
18 void addSection(Section section);
19
20 /**
21 * Returns the number of Sections in this Settings object.
22 *
23 * @return the number of sections.
24 */
25 int getSectionCount();
26
27 /**
28 * Returns the section at position <i>pos</i>.
29 *
30 * @param pos the position of the target Section.
31 *
32 * @return the Section at position <i>pos</i> or null if no Section is
33 * existing at <i>pos</i>.
34 */
35 Section getSection(int pos);
36
37 /**
38 * Removes a Section if it is existing in this Settings.
39 *
40 * @param section The section that should be removed.
41 */
42 void removeSection(Section section);
43
44 /**
45 * Transforms this Settings object into a XML representation. Therefore,
46 * each Section object's <i>toXML</i> method is called to append its XML
47 * representation to the final document.
48 *
49 * @param parent The parent node.
50 */
51 void toXML(Node parent);
52 }
53 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org