1 package de.webman.generator; 2 3 import com.teamkonzept.lib.*; 4 5 10 public class GenNodeStatics 11 { 12 13 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 } 27 28 public void putGenNode(String id, GenNode node) 29 { 30 genNodeHash.put(id, node); 31 } 32 33 public GenNode getGenNode(String 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 |