code: public void setTangoType(final int tangoType, final AttrDataFormat format) throws DevFailed {
          setFormat(format);
          this.tangoType = tangoType;
          enumType = AttributeTangoType.getTypeFromTango(tangoType);
          if (format.equals(AttrDataFormat.SCALAR)) {
              type = enumType.getType();
          } else if (format.equals(AttrDataFormat.SPECTRUM)) {
              type = Array.newInstance(enumType.getType(), 0).getClass();
          } else {
              type = Array.newInstance(enumType.getType(), 0, 0).getClass();
          }
      }
docs: Set the attribute type with Tango type.
  
  @param tangoType
  @throws DevFailed
  @see TangoConst for possible values