Examples of MapPropertyInstanceDescriptor


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

            return ret;
        }

        private static MapPropertyInstanceDescriptor createMap(PropertyDefinitionMap def, PropertyMap prop) {
            MapPropertyInstanceDescriptor ret = new MapPropertyInstanceDescriptor();

            setCommonProps(ret, def, true);

            for (PropertyDefinition mem : def.getOrderedPropertyDefinitions()) {
                ConfigurationProperty memDef = convertDefinition(mem);

                addToJAXBElementList(ret.getConfigurationProperty(), ConfigurationProperty.class, memDef,
                    getTagName(memDef));
            }

            if (prop != null) {
                PropertyValuesDescriptor values = new PropertyValuesDescriptor();

                ret.setValues(values);

                for (Property el : prop.getMap().values()) {
                    ComplexValueDescriptor value = convertValue(el);
                    addToJAXBElementList(values.getComplexValue(), Object.class, value, getTagName(value));
                }
View Full Code Here

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

                prop = listProp;
            } else if (propertyInstance instanceof MapPropertyInstanceDescriptor) {
                def = convert((ConfigurationProperty) propertyInstance);
                def.setConfigurationDefinition(configurationDefinition);

                MapPropertyInstanceDescriptor mapInstance = (MapPropertyInstanceDescriptor) propertyInstance;
                PropertyMap mapProp = new PropertyMap(mapInstance.getName());

                if (mapInstance.getValues() != null) {
                    for (JAXBElement<?> val : mapInstance.getValues().getComplexValue()) {
                        ComplexValueDescriptor valueDesc = (ComplexValueDescriptor) val.getValue();
                        PropertyDefinition valueDefinition = ((PropertyDefinitionMap) def).get(valueDesc
                            .getPropertyName());

                        Property child = convert(valueDefinition, valueDesc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.