1 13 14 package mondrian.olap; 15 import java.io.PrintWriter ; 16 import java.io.StringWriter ; 17 18 21 public abstract class QueryPart implements Walkable { 22 QueryPart() { 23 } 24 25 30 public String toMdx() 31 { 32 StringWriter sw = new StringWriter (); 33 PrintWriter pw = new PrintWriter (sw); 34 unparse(pw); 35 return sw.toString(); 36 } 37 38 public void unparse(PrintWriter pw) { 39 pw.print(toString()); 40 } 41 42 public Object [] getChildren() { 44 return null; 46 } 47 48 protected Object [] getAllowedChildren(CubeAccess cubeAccess) { 49 return null; 51 } 52 } 53 54 | Popular Tags |