1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.graph.tests.conversion;
14 import java.util.TreeMap;
16 import org.simantics.databoard.Bindings;
17 import org.simantics.databoard.binding.Binding;
18 import org.simantics.databoard.binding.mutable.Variant;
19 import org.simantics.databoard.serialization.Serializer;
20 import org.simantics.graph.representation.Identity;
21 import org.simantics.graph.representation.TransferableGraph1;
22 import org.simantics.graph.representation.Value;
25 * @author Hannu Niemistö
26 * @deprecated superceded by {@link TransferableGraph1}
29 public class TransferableGraph0 {
30 public static Binding BINDING = Bindings.getBindingUnchecked(TransferableGraph0.class);
31 public static Serializer SERIALIZER = Bindings.getSerializerUnchecked(BINDING);
33 public int resourceCount;
34 public Identity[] identities;
35 public int[] statements;
36 public Value[] values;
37 public TreeMap<String, Variant> extensions;
39 public TransferableGraph0() {
42 public TransferableGraph0(int resourceCount, Identity[] identities,
43 int[] statements, Value[] values) {
44 this(resourceCount, identities, statements, values,
45 new TreeMap<String, Variant>());
48 public TransferableGraph0(int resourceCount, Identity[] identities,
49 int[] statements, Value[] values, TreeMap<String, Variant> extensions) {
50 this.resourceCount = resourceCount;
51 this.identities = identities;
52 this.statements = statements;
54 this.extensions = extensions;