opendap/src/main/java/opendap/servers/SDString.java
public void printXML(PrintWriter pw, String pad, boolean constrained) {

        // BEWARE! Since printXML()is (multiple) overloaded in BaseType
        // and all of the different signatures of printXML() 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.

        // Also, since printXML()is (multiple) overloaded in BaseType
        // and all of the different signatures of printXML() in BaseType
        // lead to the signature we are overriding here, we MUST call
        // the printXML with the SAME signature THROUGH the super class
        // reference (assuming we want the super class functionality). If
        // we do otherwise, we will create an infinte call loop. OOPS!

        // System.out.println("SDString.printXML(pw,pad,"+constrained+")  Project: "+Project);

        if (constrained && !isProject())
            return;

        super.printXML(pw, pad, constrained);
    }
public void printXML(PrintWriter pw, String pad, boolean constrained) {

        // BEWARE! Since printXML()is (multiple) overloaded in BaseType
        // and all of the different signatures of printXML() 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.

        // Also, since printXML()is (multiple) overloaded in BaseType
        // and all of the different signatures of printXML() in BaseType
        // lead to the signature we are overriding here, we MUST call
        // the printXML with the SAME signature THROUGH the super class
        // reference (assuming we want the super class functionality). If
        // we do otherwise, we will create an infinte call loop. OOPS!

        // System.out.println("SDString.printXML(pw,pad,"+constrained+")  Project: "+Project);

        if (constrained && !isProject())
            return;

        super.printXML(pw, pad, constrained);
    }
public void printXML ( PrintWriter pw , String pad , boolean constrained ) { // BEWARE! Since printXML()is (multiple) overloaded in BaseType // and all of the different signatures of printXML() 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. // Also, since printXML()is (multiple) overloaded in BaseType // and all of the different signatures of printXML() in BaseType // lead to the signature we are overriding here, we MUST call // the printXML with the SAME signature THROUGH the super class // reference (assuming we want the super class functionality). If // we do otherwise, we will create an infinte call loop. OOPS! // System.out.println("SDString.printXML(pw,pad,"+constrained+")  Project: "+Project); if ( constrained && ! isProject ( ) ) return ; super . printXML ( pw , pad , constrained ) ; }
Write the variable's declaration in XML. This
function is used to create the XML representation of the Data
Descriptor Structure (DDS).  See <em>The OPeNDAP User Manual</em> for
information about this structure.

@param constrained a boolean value indicating whether to print
the declartion dependent on the projection information. <b>This
is only used by Server side code.</b>
@see DDS
Write the variable s declaration in XML . This function is used to create the XML representation of the Data Descriptor Structure ( DDS ) . See <em > The OPeNDAP User Manual< / em > for information about this structure .