]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/src/org/simantics/graph/representation/Identity.java
Fixing PrettyPrintTG to not concatenate strings in logging
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / representation / Identity.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.representation;
13
14 /**
15  * A part of TransferableGraph data structure. 
16  * Gives an identity to a resource.
17  * @author Hannu Niemist�
18  */
19 public class Identity {
20         public int resource;
21         public IdentityDefinition definition;
22         
23         public Identity() {
24         }
25
26         public Identity(int resource, IdentityDefinition definition) {
27                 this.resource = resource;
28                 this.definition = definition;
29         }
30         
31         @Override
32         public String toString() {
33             return "#" + resource + " = " + definition;
34         }
35 }