opendap/src/main/java/opendap/dap/DVector.java
public void addVariable(BaseType v) {
        vals = v.newPrimitiveVector();
        setClearName(v.getClearName());
        v.setParent(this);
        setContainerVar(v); // save v for cloning
    }
public void addVariable(BaseType v) {
        vals = v.newPrimitiveVector();
        setClearName(v.getClearName());
        v.setParent(this);
        setContainerVar(v); // save v for cloning
    }
Adds a variable to the container.

@param v the variable to add.