01: /*
02: * Created on Feb 1, 2005
03: *
04: */
05: package net.sf.thingamablog.generator;
06:
07: import java.util.Hashtable;
08: import java.util.List;
09: import java.util.Vector;
10:
11: /**
12: * @author Owner
13: */
14: public abstract class BasicContainer implements TemplateContainer {
15: private Vector tags = new Vector();
16: private Vector containers = new Vector();
17: private String name = "";
18:
19: public BasicContainer(String name) {
20: this .name = name;
21: }
22:
23: public void registerTag(TemplateTag t) {
24: tags.add(t);
25: }
26:
27: public void registerContainer(TemplateContainer tc) {
28: containers.add(tc);
29: }
30:
31: /* (non-Javadoc)
32: * @see net.sf.thingamablog.generator1.TemplateContainer#init(java.util.Hashtable)
33: */
34: public void initialize(Hashtable attribs) {
35:
36: }
37:
38: /* (non-Javadoc)
39: * @see net.sf.thingamablog.generator1.TemplateContainer#getTags()
40: */
41: public List getTags() {
42: return tags;
43: }
44:
45: /* (non-Javadoc)
46: * @see net.sf.thingamablog.generator1.TemplateContainer#getContainers()
47: */
48: public List getContainers() {
49: return containers;
50: }
51:
52: /* (non-Javadoc)
53: * @see net.sf.thingamablog.generator1.TemplateContainer#processAgain()
54: */
55: public boolean processAgain() {
56: return false;
57: }
58:
59: /* (non-Javadoc)
60: * @see net.sf.thingamablog.generator1.TemplateContainer#isVisible()
61: */
62: public boolean isVisible() {
63: return true;
64: }
65:
66: /* (non-Javadoc)
67: * @see net.sf.thingamablog.generator1.TemplateContainer#prefix()
68: */
69: public String prefix() {
70: return null;
71: }
72:
73: /* (non-Javadoc)
74: * @see net.sf.thingamablog.generator1.TemplateContainer#postfix()
75: */
76: public String postfix() {
77: return null;
78: }
79:
80: /* (non-Javadoc)
81: * @see net.sf.thingamablog.generator1.TemplateElement#getName()
82: */
83: public String getName() {
84: return name;
85: }
86:
87: /* (non-Javadoc)
88: * @see net.sf.thingamablog.generator1.TemplateElement#getDefaultAttributes()
89: */
90: public Hashtable getDefaultAttributes() {
91: return null;
92: }
93: }
|