KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > genimen > djeneric > tools > generator > core > nodes > ModuleNode


1 package com.genimen.djeneric.tools.generator.core.nodes;
2
3 import com.genimen.djeneric.tools.generator.core.DjentelParserEngine;
4 import com.genimen.djeneric.tools.generator.core.SimpleNode;
5
6 public class ModuleNode extends SimpleNode
7 {
8
9   private String JavaDoc moduleName = null;
10   private String JavaDoc objectType = null;
11   private String JavaDoc objectName = null;
12
13   public ModuleNode(int i)
14   {
15     super(i);
16   }
17
18   public ModuleNode(DjentelParserEngine p, int i)
19   {
20     super(p, i);
21   }
22
23   public boolean isRootBased()
24   {
25     return objectType != null;
26   }
27
28   public String JavaDoc getModuleName()
29   {
30     return moduleName;
31   }
32
33   public void setModuleName(String JavaDoc moduleName)
34   {
35     this.moduleName = moduleName;
36   }
37
38   public void setObjectType(String JavaDoc objectType)
39   {
40     this.objectType = objectType;
41   }
42
43   public String JavaDoc getObjectType()
44   {
45     return objectType;
46   }
47
48   public void setObjectName(String JavaDoc objectName)
49   {
50     this.objectName = objectName;
51   }
52
53   public String JavaDoc getObjectName()
54   {
55     return objectName;
56   }
57
58   public String JavaDoc getName()
59   {
60     return "module";
61   }
62
63   public String JavaDoc toString()
64   {
65     return "Module name = " + moduleName + "\nObject type = " + objectType + "\nObject name = " + objectName;
66   }
67
68 }
Popular Tags