Package com.dyuproject.protostuff.model

Examples of com.dyuproject.protostuff.model.PropertyMeta


    public static ArrayList<Class<?>> getEnumClasses(Model<?> model)
    {
        HashSet<Class<?>> enumClasses = new HashSet<Class<?>>();
        for(Property p : model.getProperties())
        {
            PropertyMeta pm = p.getPropertyMeta();
            if(pm.isRepeated())
            {
                if(pm.getComponentTypeClass().isEnum())
                    enumClasses.add(pm.getComponentTypeClass());
            }
            else if(pm.getTypeClass().isEnum())
                enumClasses.add(pm.getTypeClass());
        }
        ArrayList<Class<?>> classes = new ArrayList<Class<?>>(enumClasses);
        Collections.sort(classes, new Comparator<Class<?>>(){
            public int compare(Class<?> c, Class<?> c2)
            {               
View Full Code Here

TOP

Related Classes of com.dyuproject.protostuff.model.PropertyMeta

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.