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 JdoRoot extends JdoElement { 22 23 public String name; 24 public JdoPackage[] packages; 25 26 public JdoElement getParent() { return null; } 27 28 public String getSubContext() { 29 return name; 30 } 31 32 public String toString() { 33 return getSubContext(); 34 } 35 36 39 public boolean isQueryMetaData() { 40 return name.endsWith(".jdoquery"); 41 } 42 43 public void dump() { 44 dump(Debug.OUT); 45 } 46 47 public void dump(PrintStream out) { 48 out.println(this); 49 for (int i = 0; i < packages.length; i++) { 50 packages[i].dump(out, " "); 51 } 52 } 53 54 } 55 | Popular Tags |