Package lesson06.test

Examples of lesson06.test.Cat


            PropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), o.getClass());
            field.setAccessible(true);
            if (field.isAnnotationPresent(Ignore.class)) {
                continue;
            } else if (field.isAnnotationPresent(UseDataAdapter.class)) {
                UseDataAdapter adapter = field.getAnnotation(UseDataAdapter.class);
                jsonObject.put(field.getName(), adapter.value().newInstance().toJson(propertyDescriptor.getReadMethod().invoke(o)));
            } else {
                jsonObject.put(field.getName(), serialize(propertyDescriptor.getReadMethod().invoke(o)));
            }
            field.setAccessible(false);
        }
View Full Code Here

TOP

Related Classes of lesson06.test.Cat

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.