code: public void setXSDTypeName(String name) {
      this.xsdTypeName = name;
      Integer code = (Integer)JSBaseTypes.xsdTypeNames.get(name);
      if (code == null)
        throw new IllegalArgumentException("XSDTypeName=" + name);
      setTypeCode(code.intValue());
    }
docs: Set the XSD type name, and, as a side-effect, set the type code most appropriate for
  use with that type