1 2 12 package com.versant.core.metadata.parser; 13 14 import com.versant.core.common.Debug; 15 16 import java.io.PrintStream ; 17 18 21 public final class JdoPackage extends JdoElement { 22 23 public String name; 24 public JdoClass[] classes; 25 public JdoExtension[] extensions; 26 public JdoRoot parent; 27 28 public JdoElement getParent() { return parent; } 29 30 35 public String getSubContext() { 36 return "package[" + name + "]"; 37 } 38 39 public String toString() { 40 return getSubContext(); 41 } 42 43 public void dump() { 44 dump(Debug.OUT, ""); 45 } 46 47 public void dump(PrintStream out, String indent) { 48 out.println(indent + this); 49 String is = indent + " "; 50 if (classes != null) { 51 for (int i = 0; i < classes.length; i++) { 52 classes[i].dump(out, is); 53 } 54 } 55 if (extensions != null) { 56 for (int i = 0; i < extensions.length; i++) { 57 extensions[i].dump(out, is); 58 } 59 } 60 } 61 62 } 63 64 | Popular Tags |