Package org.apache.etch.bindings.java.msg

Examples of org.apache.etch.bindings.java.msg.StructValue


    return new Date( (Long) struct.get( field ) );
  }

  public StructValue exportValue( ValueFactory vf, Object value )
  {
    StructValue struct = new StructValue( type, vf );
    struct.put( field, ((Date) value).getTime() );
    return struct;
  }
View Full Code Here


    {
      keysAndValues[index++] = me.getKey();
      keysAndValues[index++] = me.getValue();
    }
   
    StructValue struct = new StructValue( type, vf );
    struct.put( field, keysAndValues );
    return struct;
  }
View Full Code Here

    List<Object> list = (List<Object>) value;
   
    Object[] values = new Object[list.size()];
    list.toArray( values );
   
    StructValue struct = new StructValue( type, vf );
    struct.put( field, values );
    return struct;
  }
View Full Code Here

    Set<Object> set = (Set<Object>) value;
   
    Object[] keys = new Object[set.size()];
    set.toArray( keys );
   
    StructValue struct = new StructValue( type, vf );
    struct.put( field, keys );
    return struct;
  }
View Full Code Here

    return new URL( (String) struct.get( field ) );
  }

  public StructValue exportValue( ValueFactory vf, Object value )
  {
    StructValue struct = new StructValue( type, vf );
    struct.put( field, ((URL) value).toString() );
    return struct;
  }
View Full Code Here

    {
      keysAndValues[index++] = me.getKey();
      keysAndValues[index++] = me.getValue();
    }
   
    StructValue struct = new StructValue( type, vf );
    struct.put( field, keysAndValues );
    return struct;
  }
View Full Code Here

TOP

Related Classes of org.apache.etch.bindings.java.msg.StructValue

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.