comparison flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeField.java @ 340:b36fd8f21e6a

Implementation of interfaces and its default implementations and a factory to work with themes. flys-artifacts/trunk@1739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Apr 2011 08:44:41 +0000
parents
children
comparison
equal deleted inserted replaced
339:4509ba8fae68 340:b36fd8f21e6a
1 package de.intevation.flys.themes;
2
3 import org.w3c.dom.Document;
4
5
6 /**
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
8 */
9 public interface ThemeField {
10
11 /**
12 * Returns the name of this field.
13 *
14 * @return the name of this field.
15 */
16 String getName();
17
18 /**
19 * Returns the type of this field.
20 *
21 * @return the type of this field.
22 */
23 String getType();
24
25
26 /**
27 * Returns the value of this field.
28 *
29 * @return the value of this field.
30 */
31 Object getValue();
32
33
34 /**
35 * Changes the value of this field.
36 *
37 * @param value The new value.
38 */
39 void setValue(Object value);
40
41
42 /**
43 * Sets the value of an attribute.
44 *
45 * @param name The name of an attribute.
46 * @param value The value of an attribute.
47 */
48 void setAttribute(String name, Object value);
49
50
51 /**
52 * Dumps the field to XML.
53 *
54 * @return a document.
55 */
56 Document toXML();
57 }
58 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org