X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2Fold%2FOldTransferableGraph1.java;h=b68bea31ec4f4827768a3f1dfd39ba20d1b31907;hb=e8269f6cba002c702c25d80db5399b5b50b97ab9;hp=35e0e949b7876c12dd310e8512007dfd57dcdd17;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java
index 35e0e949b..b68bea31e 100644
--- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java
+++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/old/OldTransferableGraph1.java
@@ -1,88 +1,88 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
- * in Industry THTH ry.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * VTT Technical Research Centre of Finland - initial API and implementation
- *******************************************************************************/
-package org.simantics.graph.representation.old;
-
-import java.util.TreeMap;
-
-import org.simantics.databoard.Bindings;
-import org.simantics.databoard.binding.Binding;
-import org.simantics.databoard.binding.mutable.Variant;
-import org.simantics.databoard.serialization.Serializer;
-import org.simantics.graph.representation.External;
-import org.simantics.graph.representation.Identity;
-import org.simantics.graph.representation.Internal;
-import org.simantics.graph.representation.Root;
-import org.simantics.graph.tests.conversion.TransferableGraph0;
-
-
-/**
- * Transferable graph datatype.
- * See specification.
- * @author Hannu Niemist�
- *
- * @deprecated superceded by {@link TransferableGraph0}
- */
-@Deprecated
-public class OldTransferableGraph1 {
- public static Binding BINDING = Bindings.getBindingUnchecked(OldTransferableGraph1.class);
- public static Serializer SERIALIZER = Bindings.getSerializerUnchecked(BINDING);
-
- public int resourceCount;
- public Identity[] identities;
- public int[] statements;
- public OldValue1[] values;
- public TreeMap extensions;
-
- public OldTransferableGraph1() {}
-
- public OldTransferableGraph1(int resourceCount, Identity[] identities,
- int[] statements, OldValue1[] values) {
- this(resourceCount, identities, statements, values,
- new TreeMap());
- }
-
- public OldTransferableGraph1(int resourceCount, Identity[] identities,
- int[] statements, OldValue1[] values, TreeMap extensions) {
- this.resourceCount = resourceCount;
- this.identities = identities;
- this.statements = statements;
- this.values = values;
- this.extensions = extensions;
- }
-
- public void print() {
- System.out.println("Identities");
- for(Identity id : identities) {
- System.out.print(" " + id.resource + " = ");
- if(id.definition instanceof Root) {
- Root def = (Root)id.definition;
- System.out.println("ROOT(" + def.name + ")");
- }
- else if(id.definition instanceof External) {
- External def = (External)id.definition;
- System.out.println("EXTERNAL(" + def.parent + ", " + def.name + ")");
- }
- else if(id.definition instanceof Internal) {
- Internal def = (Internal)id.definition;
- System.out.println("INTERNAL(" + def.parent + ", " + def.name + ")");
- }
- }
- System.out.println("Statements:");
- for(int i=0;ispecification.
+ * @author Hannu Niemist�
+ *
+ * @deprecated superceded by {@link TransferableGraph0}
+ */
+@Deprecated
+public class OldTransferableGraph1 {
+ public static Binding BINDING = Bindings.getBindingUnchecked(OldTransferableGraph1.class);
+ public static Serializer SERIALIZER = Bindings.getSerializerUnchecked(BINDING);
+
+ public int resourceCount;
+ public Identity[] identities;
+ public int[] statements;
+ public OldValue1[] values;
+ public TreeMap extensions;
+
+ public OldTransferableGraph1() {}
+
+ public OldTransferableGraph1(int resourceCount, Identity[] identities,
+ int[] statements, OldValue1[] values) {
+ this(resourceCount, identities, statements, values,
+ new TreeMap());
+ }
+
+ public OldTransferableGraph1(int resourceCount, Identity[] identities,
+ int[] statements, OldValue1[] values, TreeMap extensions) {
+ this.resourceCount = resourceCount;
+ this.identities = identities;
+ this.statements = statements;
+ this.values = values;
+ this.extensions = extensions;
+ }
+
+ public void print() {
+ System.out.println("Identities");
+ for(Identity id : identities) {
+ System.out.print(" " + id.resource + " = ");
+ if(id.definition instanceof Root) {
+ Root def = (Root)id.definition;
+ System.out.println("ROOT(" + def.name + ")");
+ }
+ else if(id.definition instanceof External) {
+ External def = (External)id.definition;
+ System.out.println("EXTERNAL(" + def.parent + ", " + def.name + ")");
+ }
+ else if(id.definition instanceof Internal) {
+ Internal def = (Internal)id.definition;
+ System.out.println("INTERNAL(" + def.parent + ", " + def.name + ")");
+ }
+ }
+ System.out.println("Statements:");
+ for(int i=0;i