setAliasesByType

Sets the aliases by type map, consisting of string aliases mapped to classes. Any class that is assignable to
this type will be aliased to the same name. Keys are aliases; values are either
Class instances, or String class names.

setUseAttributeForTypes

setUseAttributeFor

Set the types to use XML attributes for. The given map can contain
either <String, Class> pairs, in which case
XStream.useAttributeFor(String, Class) is called.
Alternatively, the map can contain <Class, String>
or <Class, List<String>> pairs, which results in
XStream.useAttributeFor(Class, String) calls.