opendap/src/main/java/opendap/dap/DSequence.java
public void checkSemantics(boolean all)
            throws BadSemanticsException {
        super.checkSemantics(all);

        Util.uniqueNames(varTemplate, getEncodedName(), getTypeName());

        if (all) {
            for (Enumeration e = varTemplate.elements(); e.hasMoreElements();) {
                BaseType bt = (BaseType) e.nextElement();
                bt.checkSemantics(true);
            }
        }
    }
public void checkSemantics(boolean all)
            throws BadSemanticsException {
        super.checkSemantics(all);

        Util.uniqueNames(varTemplate, getEncodedName(), getTypeName());

        if (all) {
            for (Enumeration e = varTemplate.elements(); e.hasMoreElements();) {
                BaseType bt = (BaseType) e.nextElement();
                bt.checkSemantics(true);
            }
        }
    }
Checks for internal consistency.  For <code>DSequence</code>, verify that
the variables have unique names.

@param all for complex constructor types, this flag indicates whether to
check the semantics of the member variables, too.
@throws BadSemanticsException if semantics are bad, explains why.
@see BaseType#checkSemantics(boolean)