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.representation;
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;
23 * Transferable graph datatype.
24 * See <a href="https://www.simantics.org/wiki/index.php/Graph_exchange_format">specification</a>.
25 * @author Hannu Niemist�
27 public class TransferableGraph2 extends TransferableGraph1 {
29 public static Binding BINDING;
30 public static Serializer SERIALIZER;
32 public TransferableGraph2(int resourceCount, Identity[] identities,
33 int[] statements, Value[] values, TreeMap<String, Variant> extensions) {
34 super(resourceCount, identities, statements, values, extensions);
37 public TransferableGraph2(int resourceCount, Identity[] identities,
38 int[] statements, Value[] values) {
39 super(resourceCount, identities, statements, values);
42 public static Binding getBinding() {
47 BINDING = Bindings.getBindingUnchecked( TransferableGraph2.class );
48 SERIALIZER = TransferableGraph1Serializer.INSTANCE;
49 Bindings.serializerRepository.put(BINDING, SERIALIZER);