Package com.thoughtworks.xstream.converters.enums

Examples of com.thoughtworks.xstream.converters.enums.EnumSingleValueConverter


                    singleValueConverter = super.getConverterFromItemType(fieldName, type, definedIn);
                    if (singleValueConverter == null) {
                        @SuppressWarnings("unchecked")
                        final Class<? extends Enum<?>> enumType = (Class<? extends Enum<?>>)type;
                        @SuppressWarnings({"rawtypes", "unchecked"})
                        final EnumSingleValueConverter<?> enumConverter = new EnumSingleValueConverter(enumType);
                        singleValueConverter = enumConverter;
                    }
                    enumConverterMap.put(type, singleValueConverter);
                }
                return singleValueConverter;
View Full Code Here


                if (singleValueConverter == null) {
                    singleValueConverter = super.getConverterFromItemType(fieldName, type, definedIn);
                    if (singleValueConverter == null) {
                        @SuppressWarnings("unchecked")
                        Class<? extends Enum> enumType = type;
                        singleValueConverter = new EnumSingleValueConverter(enumType);
                    }
                    enumConverterMap.put(type, singleValueConverter);
                }
                return singleValueConverter;
            }
View Full Code Here

                SingleValueConverter singleValueConverter = (SingleValueConverter)enumConverterMap
                    .get(type);
                if (singleValueConverter == null) {
                    singleValueConverter = super.getConverterFromItemType(fieldName, type, definedIn);
                    if (singleValueConverter == null) {
                        singleValueConverter = new EnumSingleValueConverter(type);
                    }
                    enumConverterMap.put(type, singleValueConverter);
                }
                return singleValueConverter;
            }
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.converters.enums.EnumSingleValueConverter

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.