Examples of convert()


Examples of org.jboss.seam.remoting.wrapper.NumberWrapper.convert()

      String value = "123";

      NumberWrapper wrapper = new NumberWrapper();
      wrapper.setElement(createElement("number", value));

      assert new Short(value).equals(wrapper.convert(Short.class));
      assert wrapper.convert(Short.TYPE).equals(Short.parseShort(value));

      assert new Integer(value).equals(wrapper.convert(Integer.class));
      assert wrapper.convert(Integer.TYPE).equals(Integer.parseInt(value));
View Full Code Here

Examples of org.jboss.seam.remoting.wrapper.StringWrapper.convert()

      String value = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
            + "!@#$%^&*()_+-=`~[]{}|;:\"',./<>?\\ ";
      StringWrapper wrapper = new StringWrapper();
      wrapper.setElement(createElement("str", value));

      assert value.equals(wrapper.convert(String.class));
      assert value
            .equals(((StringBuilder) wrapper.convert(StringBuilder.class))
                  .toString());
      assert value.equals(((StringBuffer) wrapper.convert(StringBuffer.class))
            .toString());
View Full Code Here

Examples of org.jboss.seam.remoting.wrapper.Wrapper.convert()

                        ((BeanWrapper) target).setBeanProperty(name, source);
                     }
                     else
                     {
                        Type t = ((BeanWrapper) target).getBeanPropertyType(name);
                        if (!cloneBagContents(source.convert(t), ((Wrapper) targetBag).getValue()))
                        {
                           ((BeanWrapper) target).setBeanProperty(name, source);
                        }
                     }
                  }
View Full Code Here

Examples of org.jboss.varia.deployment.convertor.Convertor.convert()

         {
            Convertor converter = (Convertor)i.next();
            if(converter.accepts(di.url))
            {
               // Convert them to JBoss specific DDs
               converter.convert(di, inflateDest);
               // Now conversion is done and we can leave
               break;
            }
         }
View Full Code Here

Examples of org.jcodings.transcode.EConv.convert()

        int convertedOutput = 0;

        destbytes = newStr.getUnsafeBytes();
        int dest = newStr.begin();
        dp.p = dest + convertedOutput;
        ret = ec.convert(sbytes, sp, start + len, destbytes, dp, dest + olen, 0);
        while (ret == EConvResult.DestinationBufferFull) {
            int convertedInput = sp.p - start;
            int rest = len - convertedInput;
            convertedOutput = dp.p - dest;
            newStr.setRealSize(convertedOutput);
View Full Code Here

Examples of org.jdbf.castor.TypeConvertor.convert()

        //first convert from java.sql.Date to java.util.Date

        TypeConvertor convertor = Types.getConvertor(fromClass,toClass);           

        propertyValue = convertor.convert(propertyValue,null);           

        fromClass = toClass;

        toClass = ReflectionManager.getPropertyType(object,item.getPropertyName());
View Full Code Here

Examples of org.jgroups.conf.PropertyConverter.convert()

     *
     * @throws Exception
     */
    public static void testNetworkList() throws Exception {
        PropertyConverter conv=new PropertyConverters.NetworkInterfaceList();
        Object tmp=conv.convert(null, List.class, "bela", "lo", false);
        Object str=conv.toString(tmp);
        System.out.println("str = " + str);
        assert str.equals("lo");
    }

View Full Code Here

Examples of org.jitterbit.integration.client.mapping.db.DatabaseStructureMappingTreeConverter.convert()

                return c.convert((ComplexTextStructure) s, callback);
            }
            case Database: {
                DatabaseStructureMappingTreeConverter c = new DatabaseStructureMappingTreeConverter();
                c.setLogger(logger);
                return c.convert((DatabaseStructure) s, callback);
            }
            case LDAP: {
                LdapStructureMappingTreeConverter c = new LdapStructureMappingTreeConverter();
                return c.convert((LdapStructure) s, isTarget, callback);
            }
View Full Code Here

Examples of org.jitterbit.integration.client.mapping.json.JsonStructureMappingTreeConverter.convert()

                XmlStructureMappingTreeConverter c = new XmlStructureMappingTreeConverter();
                return c.convert((XmlStructure) s, isTarget, callback);
            }
            case JSON: {
                JsonStructureMappingTreeConverter c = new JsonStructureMappingTreeConverter();
                return c.convert((JsonStructure) s, isTarget, callback);
            }
            default:
                throw new RuntimeException("Unexpected structure type: " + s.getStructureType());
            }
        }
View Full Code Here

Examples of org.jitterbit.integration.client.mapping.ldap.LdapStructureMappingTreeConverter.convert()

                c.setLogger(logger);
                return c.convert((DatabaseStructure) s, callback);
            }
            case LDAP: {
                LdapStructureMappingTreeConverter c = new LdapStructureMappingTreeConverter();
                return c.convert((LdapStructure) s, isTarget, callback);
            }
            case None: {
                String xml = NoStructure.getJtr(isTarget);
                MappingTreeStructure structure = MappingTreeStructureFactory.fromString(xml);
                if (callback != null) {
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.