]> gerrit.simantics Code Review - simantics/sysdyn.git/blob
4f31cb0cbe55de1cfc5207566744622ca9118a38
[simantics/sysdyn.git] /
1 package org.simantics.sysdyn.modelImport.model.support;\r
2 \r
3 import java.util.ArrayList;\r
4 \r
5 import org.simantics.db.Resource;\r
6 import org.simantics.db.WriteGraph;\r
7 import org.simantics.db.exception.DatabaseException;\r
8 import org.simantics.sysdyn.modelImport.model.IWriteableObject;\r
9 import org.simantics.sysdyn.modelImport.model.WriteContext;\r
10 \r
11 public class Enumeration2 implements IWriteableObject {\r
12         \r
13         private String name;\r
14         private ArrayList<String> values;\r
15         \r
16         private Resource resource;\r
17         \r
18         public Enumeration2(String name, ArrayList<String> values) {\r
19                 this.name = name;\r
20                 this.values = values;\r
21         }\r
22         \r
23         public String getName() {\r
24                 return name;\r
25         }\r
26         \r
27         public Resource getResource() {\r
28                 return resource;\r
29         }\r
30 \r
31         @Override\r
32         public void write(WriteGraph graph, Resource parent, WriteContext context)\r
33                         throws DatabaseException {\r
34                 System.err.println("write enumeration");\r
35                 \r
36                 resource = null;\r
37         }\r
38 \r
39 }\r