]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0.utils/src/org/simantics/layer0/utils/writer/DummyGraphWriter.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.layer0.utils / src / org / simantics / layer0 / utils / writer / DummyGraphWriter.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.layer0.utils.writer;\r
13 \r
14 import org.eclipse.core.runtime.IProgressMonitor;\r
15 import org.simantics.db.ReadGraph;\r
16 import org.simantics.db.Resource;\r
17 import org.simantics.db.WriteOnlyGraph;\r
18 \r
19 public class DummyGraphWriter extends AbstractDelayedGraphWriter {\r
20 \r
21         public DummyGraphWriter(ReadGraph graph) {\r
22                 super(graph);\r
23         }\r
24 \r
25         @Override\r
26         public GraphWriter let(Resource p, Resource o) {\r
27                 return this;\r
28         }\r
29 \r
30         @Override\r
31         public GraphWriter let(Resource p, Object value, Resource dataType) {\r
32                 return this;\r
33         }\r
34         \r
35         @Override\r
36         public void commit(IProgressMonitor monitor, WriteOnlyGraph wg) {       \r
37         }\r
38 \r
39     @Override\r
40     public GraphWriter create(Resource type) {\r
41                 return this;\r
42     }\r
43 \r
44         @Override\r
45         public GraphWriter flush() {\r
46                 return this;\r
47         }\r
48 \r
49     @Override\r
50     public GraphWriter createInverse(Resource r) {\r
51         return this;\r
52     }\r
53 \r
54     @Override\r
55     public GraphWriter createLiteral(Object value, Resource dataType) {\r
56         return this;\r
57     }\r
58 \r
59 }\r