Package etch.bindings.java.msg

Examples of etch.bindings.java.msg.StructValue.type()


    Type type = getCustomStructType( clss );
   
    if (type == null && clss == StructValue.class)
    {
      StructValue struct = (StructValue) value;
      type = struct.type();
    }
   
    if (type == null)
    {
      if (Throwable.class.isAssignableFrom( clss ))
View Full Code Here


    ImportExportHelper helper = type.getImportExportHelper();
   
    StructValue sv = helper.exportValue( vf, map );
//    System.out.println( "sv = "+sv );
   
    assertEquals( sv.type(), type );
   
    StrIntHashMap map2 = (StrIntHashMap) helper.importValue( sv );
//    System.out.println( "map2 = "+map2 );
   
    assertEquals( map, map2 );
View Full Code Here

    ImportExportHelper helper = type.getImportExportHelper();
   
    StructValue sv = helper.exportValue( vf, date );
//    System.out.println( "sv = "+sv );
   
    assertEquals( sv.type(), type );
   
    Date date2 = (Date) helper.importValue( sv );
//    System.out.println( "date2 = "+date2 );
   
    assertEquals( date, date2 );
View Full Code Here

    ImportExportHelper helper = type.getImportExportHelper();
   
    StructValue sv = helper.exportValue( vf, map );
//    System.out.println( "sv = "+sv );
   
    assertEquals( sv.type(), type );
   
    StrStrHashMap map2 = (StrStrHashMap) helper.importValue( sv );
//    System.out.println( "map2 = "+map2 );
   
    assertEquals( map, map2 );
View Full Code Here

    ImportExportHelper helper = type.getImportExportHelper();
   
    StructValue sv = helper.exportValue( vf, url );
//    System.out.println( "sv = "+sv );
   
    assertEquals( sv.type(), type );
   
    URL url2 = (URL) helper.importValue( sv );
//    System.out.println( "url2 = "+url2 );
   
    assertEquals( url, url2 );
View Full Code Here

    Type type = getCustomStructType( clss );
   
    if (type == null && clss == StructValue.class)
    {
      StructValue struct = (StructValue) value;
      type = struct.type();
    }
   
    if (type == null)
    {
      if (Throwable.class.isAssignableFrom( clss ))
View Full Code Here

    {
      System.out.println( "msg = "+msg );
      if (msg.isType( MyValueFactoryCuae._mt_etch_examples_cuae_CuaeServer_doit1 ))
      {
        StructValue req = (StructValue) msg.get( MyValueFactoryCuae._mf_req );
        MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Request.checkIsAssignableFrom( req.type() );
        int code = (Integer) req.get( MyValueFactoryCuae._mf_code );
       
        StructValue resp;
        switch (code)
        {
View Full Code Here

     
      if (msg.isType( MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_doit3 ))
      {
        StructValue[] reqs = (StructValue[]) msg.get( MyValueFactoryCuae._mf_req );
        StructValue req = reqs[0];
        MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Request.checkIsAssignableFrom( req.type() );
        int code = (Integer) req.get( MyValueFactoryCuae._mf_code );
       
        StructValue resp;
        switch (code)
        {
View Full Code Here

              e.fillInStackTrace();
              throw e;
            }
           
            StructValue resp = (StructValue) value;
            MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Response.checkIsAssignableFrom( resp.type() );
            System.out.printf( "**** delayDoit2a: req %d response %s\n", code, resp );
          }

          public void exception( TodoManager mgr, Exception e )
          {
View Full Code Here

              e.fillInStackTrace();
              throw e;
            }
           
            StructValue resp = (StructValue) value;
            MyValueFactoryCuae._mt_etch_examples_cuae_Cuae_Response.checkIsAssignableFrom( resp.type() );
            System.out.printf( "**** delayDoit2b: req %d response %s\n", code, resp );
          }

          public void exception( TodoManager mgr, 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.