opendap/src/main/java/opendap/servers/ServerDDS.java
public void printConstrained(PrintWriter os) {
        os.println("Dataset {");
        for (Enumeration e = getVariables(); e.hasMoreElements();) {
            BaseType bt = (BaseType) e.nextElement();
            // System.err.println("check: "+bt.getLongName()+" = "+((ServerMethods) bt).isProject());
            ServerMethods sm = (ServerMethods) bt;
            if(sm.isProject()) {
                bt.printDecl(os, "    ", true, true);
            }
        }
        os.print("} ");
        if (getEncodedName() != null)
            os.print(getEncodedName());
        os.println(";");
    }
public void printConstrained(PrintWriter os) {
        os.println("Dataset {");
        for (Enumeration e = getVariables(); e.hasMoreElements();) {
            BaseType bt = (BaseType) e.nextElement();
            // System.err.println("check: "+bt.getLongName()+" = "+((ServerMethods) bt).isProject());
            ServerMethods sm = (ServerMethods) bt;
            if(sm.isProject()) {
                bt.printDecl(os, "    ", true, true);
            }
        }
        os.print("} ");
        if (getEncodedName() != null)
            os.print(getEncodedName());
        os.println(";");
    }
Print the constrained <code>DDS</code> on the given
<code>PrintWriter</code>.

@param os the <code>PrintWriter</code> to use for output.