Package org.rhq.enterprise.server.xmlschema.generated.configuration.instance

Examples of org.rhq.enterprise.server.xmlschema.generated.configuration.instance.ComplexValueListDescriptor


            return ret;
        }

        private static ComplexValueListDescriptor convertListValue(PropertyList prop) {
            ComplexValueListDescriptor ret = new ComplexValueListDescriptor();
            ret.setPropertyName(prop.getName());

            for (Property el : prop.getList()) {
                ComplexValueDescriptor value = convertValue(el);
                addToJAXBElementList(ret.getComplexValue(), Object.class, value, getTagName(value));
            }

            return ret;
        }
View Full Code Here


            Property ret = null;

            if (value instanceof ComplexValueSimpleDescriptor) {
                ret = new PropertySimple(value.getPropertyName(), ((ComplexValueSimpleDescriptor) value).getValue());
            } else if (value instanceof ComplexValueListDescriptor) {
                ComplexValueListDescriptor listValue = (ComplexValueListDescriptor) value;

                PropertyDefinitionList listDefinition = (PropertyDefinitionList) definition;

                PropertyList list = new PropertyList(value.getPropertyName());

                for (JAXBElement<?> val : listValue.getComplexValue()) {
                    Property child = convert(listDefinition.getMemberDefinition(),
                        (ComplexValueDescriptor) val.getValue());

                    list.add(child);
                }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.xmlschema.generated.configuration.instance.ComplexValueListDescriptor

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.