xstream.aliasField("file-extension", DocumentFormat.class, "fileExtension");
xstream.aliasField("export-filters", DocumentFormat.class, "exportFilters");
xstream.aliasField("export-options", DocumentFormat.class, "exportOptions");
xstream.aliasField("import-options", DocumentFormat.class, "importOptions");
xstream.alias("family", DocumentFamily.class);
xstream.registerConverter(new AbstractSingleValueConverter() {
public boolean canConvert(Class type) {
return type.equals(DocumentFamily.class);
}
public Object fromString(String name) {
return DocumentFamily.getFamily(name);