KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > confix > test > TextualConfig


1 package org.sapia.util.xml.confix.test;
2
3 // Import of Sun's JDK classes
4
// ---------------------------
5
import java.util.ArrayList JavaDoc;
6 import java.util.List JavaDoc;
7
8
9 /**
10  *
11  *
12  * @author Jean-Cedric Desrochers
13  *
14  * <dl>
15  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
16  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
17  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
18  * </dl>
19  */

20 public class TextualConfig extends Text {
21
22   private String JavaDoc _theName;
23   private ArrayList JavaDoc _theNamedValues;
24   private ArrayList JavaDoc _theCustomConfigs;
25
26   public TextualConfig() {
27     _theNamedValues = new ArrayList JavaDoc();
28     _theCustomConfigs = new ArrayList JavaDoc();
29   }
30
31   public String JavaDoc getName() {
32     return _theName;
33   }
34
35   public List JavaDoc getNamedValues() {
36     return _theNamedValues;
37   }
38
39   public List JavaDoc getCustomConfigs() {
40     return _theCustomConfigs;
41   }
42
43   public void setName(String JavaDoc aName) {
44     _theName = aName;
45   }
46
47   public void addWrappedNamedValue(WrappedNamedValue aWrapper) {
48     _theNamedValues.add(aWrapper.getNamedValue());
49   }
50
51   public void addTextualNamedValue(TextualNamedValue aNamedValue) {
52     _theNamedValues.add(aNamedValue);
53   }
54
55   public void addWrappedTextualNamedValue(WrappedTextualNamedValue aWrapper) {
56     _theNamedValues.add(aWrapper.getTextualNamedValue());
57   }
58
59   public void addNamedValue(NamedValue aNamedValue) {
60     _theNamedValues.add(aNamedValue);
61   }
62
63   public void addCustomConfig(CustomConfig aCustomConfig) {
64     _theCustomConfigs.add(aCustomConfig);
65   }
66
67     public void addXMLConsumerConfig(XMLConsumerConfig aConsumerConfig) {
68         _theCustomConfigs.add(aConsumerConfig);
69     }
70 }
71
Popular Tags