]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/element/ElementClasses.java
Avoid unnecessary ElementClass validation work
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / element / ElementClasses.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.g2d.element;
13
14 /**
15  * A list of static key objects that are used when retrieving
16  * {@link ElementClass} instances through an {@link IElementClassProvider}.
17  * 
18  * @author Tuukka Lehtonen
19  * 
20  * @see IElementClassProvider
21  * @see ElementClassProviders
22  */
23 public final class ElementClasses {
24
25     public static final Object CONNECTION = new Object() {
26         public String toString() { return "CONNECTION"; }
27     };
28
29     public static final Object FLAG = new Object() {
30         public String toString() { return "FLAG"; }
31     };
32
33 }