You can use the following in your binding file.
<jxb:bindings schemaLocation = "schema.xsd">
<jxb:bindings node = "//xs:element[@name='medium_text']">
<jxb:javaType name="java.lang.String"/>
</jxb:bindings>
</jxb:bindings>
This results in the following:
@XmlElement(name = "mid_text", required = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "token")
protected String midText;
Adapter1 however is harmless and does not change the string value.
Also if you want to do this to all your tokens
you can add a globalBinding
<jxb:globalBindings>
<jxb:javaType name="java.lang.String"
xmlType="xs:token" />
</jxb:globalBindings>