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 moduleName = null; 10 private String objectType = null; 11 private String 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 getModuleName() 29 { 30 return moduleName; 31 } 32 33 public void setModuleName(String moduleName) 34 { 35 this.moduleName = moduleName; 36 } 37 38 public void setObjectType(String objectType) 39 { 40 this.objectType = objectType; 41 } 42 43 public String getObjectType() 44 { 45 return objectType; 46 } 47 48 public void setObjectName(String objectName) 49 { 50 this.objectName = objectName; 51 } 52 53 public String getObjectName() 54 { 55 return objectName; 56 } 57 58 public String getName() 59 { 60 return "module"; 61 } 62 63 public String toString() 64 { 65 return "Module name = " + moduleName + "\nObject type = " + objectType + "\nObject name = " + objectName; 66 } 67 68 } | Popular Tags |