Function GenericDatum.setValue

Sets the value of the GenericDatum to a value corresponding with its type.

void setValue(T) (
  T val
);

Throws

VariantException when the value type does not match the datum type.