Examples of EmsAttribute


Examples of org.mc4j.ems.connection.bean.attribute.EmsAttribute

        report.setStatus(ConfigurationUpdateStatus.SUCCESS);

        for (String key : report.getConfiguration().getSimpleProperties().keySet()) {
            PropertySimple property = report.getConfiguration().getSimple(key);
            if (property != null) {
                EmsAttribute attribute = this.bean.getAttribute(key);
                try {
                    PropertyDefinitionSimple def = configurationDefinition.getPropertyDefinitionSimple(property
                        .getName());
                    if (!(ignoreReadOnly && def.isReadOnly())) {
                        switch (def.getType()) {
                        case INTEGER: {
                            attribute.setValue(property.getIntegerValue());
                            break;
                        }

                        case LONG: {
                            attribute.setValue(property.getLongValue());
                            break;
                        }

                        case BOOLEAN: {
                            attribute.setValue(property.getBooleanValue());
                            break;
                        }

                        case FLOAT: {
                            attribute.setValue(property.getFloatValue());
                            break;
                        }

                        case DOUBLE: {
                            attribute.setValue(property.getDoubleValue());
                            break;
                        }

                        default: {
                            attribute.setValue(property.getStringValue());
                            break;
                        }
                        }
                    }
                } catch (Exception e) {
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.