1 2 12 package com.versant.core.ejb.query; 13 14 import com.versant.core.metadata.ClassMetaData; 15 import com.versant.core.common.CmdBitSet; 16 17 20 public class NavRoot extends NavBase { 21 22 private IdentificationVarNode node; 23 private ClassMetaData cmd; 25 public NavRoot(IdentificationVarNode node, ClassMetaData cmd) { 26 this.node = node; 27 this.cmd = cmd; 28 } 29 30 public String getIdentifier() { 31 return getNode().getIdentifier(); 32 } 33 34 public IdentificationVarNode getNode() { 35 return node; 36 } 37 38 public NavRoot getRoot() { 39 return this; 40 } 41 42 public ClassMetaData getNavClassMetaData() { 43 return cmd; 44 } 45 46 public String toString() { 47 StringBuffer s = new StringBuffer (); 48 s.append(cmd.qname); 49 childrenToString(s); 50 return s.toString(); 51 } 52 53 } 54 55 | Popular Tags |