opendap/src/main/java/opendap/dap/DStructure.java
public BaseType getVar(int index)
            throws NoSuchVariableException {

        if (index < vars.size())
            return ((BaseType) vars.elementAt(index));
        else
            throw new NoSuchVariableException(
                    "DStructure.getVariable(" + index + " - 1)");
    }
public BaseType getVar(int index)
            throws NoSuchVariableException {

        if (index < vars.size())
            return ((BaseType) vars.elementAt(index));
        else
            throw new NoSuchVariableException(
                    "DStructure.getVariable(" + index + " - 1)");
    }
public BaseType getVar ( int index ) throws NoSuchVariableException { if ( index < vars . size ( ) ) return ( ( BaseType ) vars . elementAt ( index ) ) ; else throw new NoSuchVariableException ( "DStructure.getVariable(" + index + " - 1)" ) ; }
Gets the indexed variable. For a DStructure this returns the
<code>BaseType</code> from the <code>index</code>th column from the
internal storage <code>Vector</code>.

@param index the index of the variable in the <code>Vector</code> Vars.
@return the indexed variable.
@throws NoSuchVariableException if the named variable does not
exist in this container.
Gets the indexed variable . For a DStructure this returns the <code > BaseType< / code > from the <code > index< / code > th column from the internal storage <code > Vector< / code > .