Hi Glen,

Yea, that looks good. Looking at the builtin types in the file
Constants.java one ought to be
able to test the Object returned by the getValue() method to tell the
"type" of the union
member.

Richard

#######################################################

Hi Richard:

We don't yet claim to support union types, so I'm not surprised you got
some \
weirdness.  We should probably (as a minimal first step) be better about
reporting an \
error when we come across a schema construct which we don't understand.

How would unions be represented in java?  Something like this?

public class VersionInfo {
   public Object value;

   public Object getValue() {
       return value;
   }

   public void setValue(Calendar value) {
       this.value = value;
   }

   public void setValue(int value) {
       this.value = new Integer(value);
   }
}

--Glen

Reply via email to