Package etch.bindings.java.msg

Examples of etch.bindings.java.msg.ImportExportHelper


        type = _mt__Etch_Set;
      else
        return null;
    }
   
    ImportExportHelper helper = type.getImportExportHelper();
   
    if (helper == null)
      return null;
   
    return helper.exportValue( this, value );
  }
View Full Code Here


    return helper.exportValue( this, value );
  }

  public final Object importCustomValue( StructValue struct )
  {
    ImportExportHelper helper = struct.type().getImportExportHelper();
   
    if (helper == null)
      return null;
   
    return helper.importValue( struct );
  }
View Full Code Here

//    System.out.println( "map = "+map );
   
    Type type = new Type( "map" );
    Class2TypeMap class2type = new Class2TypeMap();
    StrIntHashMapSerializer.init( type, class2type );
    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

   
    ValueFactory vf = new DummyValueFactory();
    Type type = new Type( "date" );
    Class2TypeMap class2type = new Class2TypeMap();
    DateSerializer.init( type, class2type );
    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

   
    ValueFactory vf = new DummyValueFactory();
    Type type = new Type( "map" );
    Class2TypeMap class2type = new Class2TypeMap();
    StrStrHashMapSerializer.init( type, class2type );
    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

    ValueFactory vf = new DummyValueFactory();
    Type type = new Type( "url" );
    Class2TypeMap class2type = new Class2TypeMap();
    URLSerializer.init( type, class2type );
    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 = _mt__Etch_Set;
      else
        return null;
    }
   
    ImportExportHelper helper = type.getImportExportHelper();
   
    if (helper == null)
      return null;
   
    return helper.exportValue( this, value );
  }
View Full Code Here

    return helper.exportValue( this, value );
  }

  public final Object importCustomValue( StructValue struct )
  {
    ImportExportHelper helper = struct.type().getImportExportHelper();
   
    if (helper == null)
      return null;
   
    return helper.importValue( struct );
  }
View Full Code Here

TOP

Related Classes of etch.bindings.java.msg.ImportExportHelper

Copyright © 2018 www.massapicom. 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.