opendap/src/main/java/opendap/dap/DDS.java
public void checkSemantics(boolean all)
            throws BadSemanticsException
    {
        if (getEncodedName() == null) {
            DAPNode.log.error("A dataset must have a name");
            throw new BadSemanticsException("DDS.checkSemantics(): A dataset must have a name");
        }
        Util.uniqueNames(vars, getEncodedName(), "Dataset");

        if (all) {
            for (Enumeration e = vars.elements(); e.hasMoreElements();) {
                BaseType bt = (BaseType) e.nextElement();
                bt.checkSemantics(true);
            }
        }
    }
public void checkSemantics(boolean all)
            throws BadSemanticsException
    {
        if (getEncodedName() == null) {
            DAPNode.log.error("A dataset must have a name");
            throw new BadSemanticsException("DDS.checkSemantics(): A dataset must have a name");
        }
        Util.uniqueNames(vars, getEncodedName(), "Dataset");

        if (all) {
            for (Enumeration e = vars.elements(); e.hasMoreElements();) {
                BaseType bt = (BaseType) e.nextElement();
                bt.checkSemantics(true);
            }
        }
    }
Check the semantics of the <code>DDS</code>. If
<code>all</code> is true, check not only the semantics of the
<code>DDS</code> itself, but also recursively check all variables
in the dataset.

@param all this flag indicates whether to check the semantics of the
member variables, too.
@throws BadSemanticsException if semantics are bad