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); 
    }
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.
Adds a variable to the container .