]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/tests/org/simantics/graph/tests/conversion/TransferableGraph0.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph / tests / org / simantics / graph / tests / conversion / TransferableGraph0.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.graph.tests.conversion;
13
14 import java.util.TreeMap;
15
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;
23
24 /**
25  * @author Hannu Niemistö
26  * @deprecated superceded by {@link TransferableGraph1}
27  */
28 @Deprecated
29 public class TransferableGraph0 {
30         public static Binding BINDING = Bindings.getBindingUnchecked(TransferableGraph0.class);
31         public static Serializer SERIALIZER = Bindings.getSerializerUnchecked(BINDING);
32         
33         public int resourceCount;       
34         public Identity[] identities;   
35         public int[] statements;
36         public Value[] values;  
37         public TreeMap<String, Variant> extensions;
38         
39         public TransferableGraph0() {     
40     }
41         
42         public TransferableGraph0(int resourceCount, Identity[] identities,
43                         int[] statements, Value[] values) {
44                 this(resourceCount, identities, statements, values,
45                                 new TreeMap<String, Variant>());
46         }
47         
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;
53                 this.values = values;
54                 this.extensions = extensions;
55         }
56 }