Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/Section.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 import java.util.Set; | |
5 | |
6 import org.w3c.dom.Node; | |
7 | |
8 | |
9 /** | |
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
11 */ | |
12 public interface Section extends Serializable { | |
13 | |
14 /** | |
15 * Adds a new Attribute to this Section. | |
16 * | |
17 * @param key The key that is used to store/retrieve the Attribute. | |
18 * @param attribute The new Attribute. | |
19 */ | |
20 void addAttribute(String key, Attribute attribute); | |
21 | |
22 /** | |
23 * Returns an Attribute for the specified <i>key</i>. | |
24 * | |
25 * @param key The key that is used to retrieve the target Attribute. | |
26 * | |
27 * @return the Attribute specified by <i>key</i>. | |
28 */ | |
29 Attribute getAttribute(String key); | |
30 | |
31 /** | |
32 * Returns all keys of all Attributes currently stored in this Section. | |
33 * | |
34 * @return all keys of all Attributes. | |
35 */ | |
36 Set<String> getKeys(); | |
37 | |
38 /** | |
39 * Transforms this Section into XML using Attribute.toXML() for each | |
40 * Attribute stored in this Section. | |
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 : |