KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > webman > generator > GenNodeStatics


1 package de.webman.generator;
2
3 import com.teamkonzept.lib.*;
4
5 /**
6     Statische Daten und Methoden von GenNode
7     * @author $Author: alex $
8     * @version $Revision: 1.2 $
9  */

10 public class GenNodeStatics
11 {
12
13     /**
14         Verweis zurueck auf den aktuellen statischen Kontext des laufenden Threads
15     */

16     private GeneratorContext context;
17
18     private boolean recursiveBuild;
19     private TKHashtable genNodeHash = new TKHashtable();
20
21     public GenNodeStatics (GeneratorContext context)
22     {
23         this.context = context != null ? context : GeneratorContext.setup ();
24         this.recursiveBuild = true;
25         // this.genNodeHash = null; alex - sollte keine Auswirkungen haben
26
}
27     
28     public void putGenNode(String JavaDoc id, GenNode node)
29     {
30         genNodeHash.put(id, node);
31     }
32     
33     public GenNode getGenNode(String JavaDoc id)
34     {
35         return (GenNode)genNodeHash.get(id);
36     }
37     
38     public boolean isRecursiveBuild()
39     {
40         return recursiveBuild;
41     }
42     
43     public void setRecursiveBuild(boolean isRecursive)
44     {
45         recursiveBuild = isRecursive;
46     }
47 }
48
Popular Tags