Package org.jboss.dmr.client

Examples of org.jboss.dmr.client.ModelNode.clear()


                        if (baseType == String.class) {
                            String stringValue = (String) obj;
                            if(stringValue.startsWith("$"))
                                node.setExpression(stringValue);
                            else if("".equals(stringValue))
                                node.clear(); // TODO: depends on nillable?
                            else
                                node.set(stringValue);
                        }

                        // Numeric Values
View Full Code Here


                        // Numeric Values
                        else if (baseType == Long.class) {
                            Long longValue = (Long) obj;
                            if(0 == longValue)
                                node.clear();
                            else
                                node.set(longValue);
                        } else if (baseType == Integer.class) {
                            Integer intValue = (Integer) obj;
                            if(0 == intValue)
View Full Code Here

                            else
                                node.set(longValue);
                        } else if (baseType == Integer.class) {
                            Integer intValue = (Integer) obj;
                            if(0 == intValue)
                                node.clear();
                            else
                                node.set(intValue);
                        } else if (baseType == BigDecimal.class) {
                            BigDecimal bigValue = (BigDecimal) obj;
                            if(0.00 == bigValue.doubleValue())
View Full Code Here

                            else
                                node.set(intValue);
                        } else if (baseType == BigDecimal.class) {
                            BigDecimal bigValue = (BigDecimal) obj;
                            if(0.00 == bigValue.doubleValue())
                                node.clear();
                            else
                                node.set(bigValue);
                        } else if (baseType == Double.class) {
                            Double dValue = (Double) obj;
                            if(0.00 == dValue)
View Full Code Here

                            else
                                node.set(bigValue);
                        } else if (baseType == Double.class) {
                            Double dValue = (Double) obj;
                            if(0.00 == dValue)
                                node.clear();
                            else
                                node.set(dValue);
                        }

                        // BOOL
View Full Code Here

                            node.set((byte[]) obj);
                        }

                        // LIST
                        else if (baseType == ArrayList.class) {
                            node.clear();
                            List l = (List)obj;
                            for(Object o : l)
                                node.add(o.toString()); // TODO: type conversion ?

                        }
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.