Package org.rhq.core.clientapi.descriptor.configuration

Examples of org.rhq.core.clientapi.descriptor.configuration.PropertyOptions


        private static PropertyOptions convert(List<PropertyDefinitionEnumeration> options) {
            if (options.isEmpty()) {
                return null;
            }

            PropertyOptions ret = new PropertyOptions();

            ArrayList<PropertyDefinitionEnumeration> opts = new ArrayList<PropertyDefinitionEnumeration>(options);

            Collections.sort(opts, new Comparator<PropertyDefinitionEnumeration>() {
                public int compare(PropertyDefinitionEnumeration o1, PropertyDefinitionEnumeration o2) {
                    return o1.getOrderIndex() - o2.getOrderIndex();
                }
            });

            for (PropertyDefinitionEnumeration option : opts) {
                ret.getOption().add(convert(option));
            }

            return ret;
        }
View Full Code Here

TOP

Related Classes of org.rhq.core.clientapi.descriptor.configuration.PropertyOptions

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.