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