Package org.apache.shale.util

Examples of org.apache.shale.util.ConverterHelper.asObject()


        String asString = helper.asString(facesContext, String[].class, partialTriggers);
       
        assertNotNull(asString);
        assertEquals("one two three", asString);
       
        String[] asObject = (String[]) helper.asObject(facesContext, String[].class, asString);
        assertNotNull(asObject);
       
        assertEquals(partialTriggers .length, asObject.length);
        for (int i = 0; i < partialTriggers .length; i++) {
            assertEquals("item " + i + ":", partialTriggers[i], asObject[i]);
View Full Code Here


          }
      }
     
      if (obj instanceof String) {  
          // String to object
          return converterHelper.asObject(context, cl, (String) obj)
      } else {
          //Object to String
          String source = converterHelper.asString(context, obj.getClass(), obj);
          // String to Object
          return converterHelper.asObject(context, cl, source);
View Full Code Here

          return converterHelper.asObject(context, cl, (String) obj)
      } else {
          //Object to String
          String source = converterHelper.asString(context, obj.getClass(), obj);
          // String to Object
          return converterHelper.asObject(context, cl, source);
      }

   }

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.