Package com.thoughtworks.xstream.converters.basic

Examples of com.thoughtworks.xstream.converters.basic.AbstractBasicConverter


    xstream.aliasField("mime-type", DocumentFormat.class, "mimeType");
        xstream.aliasField("file-extension", DocumentFormat.class, "fileExtension");
    xstream.aliasField("export-filters", DocumentFormat.class, "exportFilters");
    xstream.aliasField("export-options", DocumentFormat.class, "exportOptions");
    xstream.alias("family", DocumentFamily.class);
        xstream.registerConverter(new AbstractBasicConverter(){
           public boolean canConvert(Class type) {
               return type.equals(DocumentFamily.class);
           }
           protected Object fromString(String name) {
               return DocumentFamily.getFamily(name);
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.converters.basic.AbstractBasicConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.