opendap/src/main/java/opendap/dap/DSequence.java
public void printVal(PrintWriter os, String space, boolean print_decl_p) {
        if (print_decl_p) {
            printDecl(os, space, false);
            os.print(" = ");
        }

        os.print("{ ");
        for (Enumeration e1 = allValues.elements(); e1.hasMoreElements();) {
            // get next instance vector
            os.print("{ ");
            Vector v = (Vector) e1.nextElement();
            for (Enumeration e2 = v.elements(); e2.hasMoreElements();) {
                // get next instance variable
                BaseType bt = (BaseType) e2.nextElement();
                bt.printVal(os, "", false);
                if (e2.hasMoreElements())
                    os.print(", ");
            }
            os.print(" }");
            if (e1.hasMoreElements())
                os.print(", ");
        }
        os.print(" }");

        if (print_decl_p)
            os.println(";");
    }
public void printVal(PrintWriter os, String space, boolean print_decl_p) {
        if (print_decl_p) {
            printDecl(os, space, false);
            os.print(" = ");
        }

        os.print("{ ");
        for (Enumeration e1 = allValues.elements(); e1.hasMoreElements();) {
            // get next instance vector
            os.print("{ ");
            Vector v = (Vector) e1.nextElement();
            for (Enumeration e2 = v.elements(); e2.hasMoreElements();) {
                // get next instance variable
                BaseType bt = (BaseType) e2.nextElement();
                bt.printVal(os, "", false);
                if (e2.hasMoreElements())
                    os.print(", ");
            }
            os.print(" }");
            if (e1.hasMoreElements())
                os.print(", ");
        }
        os.print(" }");

        if (print_decl_p)
            os.println(";");
    }
public void printVal ( PrintWriter os , String space , boolean print_decl_p ) { if ( print_decl_p ) { printDecl ( os , space , false ) ; os . print ( " = " ) ; } os . print ( "{ " ) ; for ( Enumeration e1 = allValues . elements ( ) ; e1 . hasMoreElements ( ) ; ) { // get next instance vector
 os . print ( "{ " ) ; Vector v = ( Vector ) e1 . nextElement ( ) ; for ( Enumeration e2 = v . elements ( ) ; e2 . hasMoreElements ( ) ; ) { // get next instance variable
 BaseType bt = ( BaseType ) e2 . nextElement ( ) ; bt . printVal ( os , "" , false ) ; if ( e2 . hasMoreElements ( ) ) os . print ( ", " ) ; } os . print ( " }" ) ; if ( e1 . hasMoreElements ( ) ) os . print ( ", " ) ; } os . print ( " }" ) ; if ( print_decl_p ) os . println ( ";" ) ; }
Prints the value of the variable, with its declaration.  This
function is primarily intended for debugging OPeNDAP applications and
text-based clients such as geturl.

@param os           the <code>PrintWriter</code> on which to print the value.
@param space        this value is passed to the <code>printDecl</code> method,
and controls the leading spaces of the output.
@param print_decl_p a boolean value controlling whether the
variable declaration is printed as well as the value.
@see BaseType#printVal(PrintWriter, String, boolean)
Prints the value of the variable with its declaration . This function is primarily intended for debugging OPeNDAP applications and text - based clients such as geturl .