comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/Settings.java @ 358:03a8f9796571

Added interfaces for a Settings hierachy currently used for Outputs. artifacts/trunk@3408 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 14 Dec 2011 09:41:44 +0000
parents
children f93edbfcf2bc
comparison
equal deleted inserted replaced
357:1d11a0531242 358:03a8f9796571
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 * Transforms this Settings object into a XML representation. Therefore,
39 * each Section object's <i>toXML</i> method is called to append its XML
40 * representation to the final document.
41 *
42 * @param parent The parent node.
43 */
44 void toXML(Node parent);
45 }
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org