opendap/src/main/java/opendap/dap/DArray.java
public void printDecl(PrintWriter os, String space, boolean print_semi,
                          boolean constrained) {

        // BEWARE! Since printDecl()is (multiplely) overloaded in BaseType and
        // all of the different signatures of printDecl() in BaseType lead to
        // one signature, we must be careful to override that SAME signature
        // here. That way all calls to printDecl() for this object lead to
        // this implementation.

        //os.println("DArray.printDecl()");

        getPrimitiveVector().printDecl(os, space, false, constrained);
        for (Enumeration e = dimVector.elements(); e.hasMoreElements();) {
            DArrayDimension d = (DArrayDimension) e.nextElement();
            os.print("[");
            String name = d.getEncodedName();
            if (name != null && name.length() > 0)
                os.print(d.getEncodedName() + " = ");
            os.print(d.getSize() + "]");
        }
        if (print_semi)
            os.println(";");
    }
public void printDecl(PrintWriter os, String space, boolean print_semi,
                          boolean constrained) {

        // BEWARE! Since printDecl()is (multiplely) overloaded in BaseType and
        // all of the different signatures of printDecl() in BaseType lead to
        // one signature, we must be careful to override that SAME signature
        // here. That way all calls to printDecl() for this object lead to
        // this implementation.

        //os.println("DArray.printDecl()");

        getPrimitiveVector().printDecl(os, space, false, constrained);
        for (Enumeration e = dimVector.elements(); e.hasMoreElements();) {
            DArrayDimension d = (DArrayDimension) e.nextElement();
            os.print("[");
            String name = d.getEncodedName();
            if (name != null && name.length() > 0)
                os.print(d.getEncodedName() + " = ");
            os.print(d.getSize() + "]");
        }
        if (print_semi)
            os.println(";");
    }
public void printDecl ( PrintWriter os , String space , boolean print_semi , boolean constrained ) { // BEWARE! Since printDecl()is (multiplely) overloaded in BaseType and // all of the different signatures of printDecl() in BaseType lead to // one signature, we must be careful to override that SAME signature // here. That way all calls to printDecl() for this object lead to // this implementation. //os.println("DArray.printDecl()"); getPrimitiveVector ( ) . printDecl ( os , space , false , constrained ) ; for ( Enumeration e = dimVector . elements ( ) ; e . hasMoreElements ( ) ; ) { DArrayDimension d = ( DArrayDimension ) e . nextElement ( ) ; os . print ( "[" ) ; String name = d . getEncodedName ( ) ; if ( name != null && name . length ( ) > 0 ) os . print ( d . getEncodedName ( ) + " = " ) ; os . print ( d . getSize ( ) + "]" ) ; } if ( print_semi ) os . println ( ";" ) ; }
Write the variable's declaration in a C-style syntax. This
function is used to create textual representation of the Data
Descriptor Structure (DDS).  See <em>The OPeNDAP User Manual</em> for
information about this structure.

@param os         The <code>PrintWriter</code> on which to print the
declaration.
@param space      Each line of the declaration will begin with the
characters in this string.  Usually used for leading spaces.
@param print_semi a boolean value indicating whether to print a
semicolon at the end of the declaration.
@see BaseType#printDecl(PrintWriter, String, boolean)
Write the variable s declaration in a C - style syntax . This function is used to create textual representation of the Data Descriptor Structure ( DDS ) . See <em > The OPeNDAP User Manual< / em > for information about this structure .