Prints the value of the variable, with its declaration. This
function is primarily intended for debugging OPeNDAP applications and
text-based clients such as geturl.
Important Note
This method overrides the BaseType method of the same name and
type signature and it significantly changes the behavior for all versions
of
printVal()
for this type:
All the various versions of printVal() will only
print a value, or a value with declaration, if the variable is
in the projection.
In other words, if a call to
isProject()
for a particular variable returns
true
then
printVal()
will print a value
(or a declaration and a value).
If
isProject()
for a particular variable returns
false
then
printVal()
is basically a No-Op.