]> gerrit.simantics Code Review - simantics/sysdyn.git/blob
64d9df06950eea3d1340d24e6d22e72650008f83
[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 Enumeration 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 Enumeration(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         @Override\r
28         public Resource write(WriteGraph graph, Resource parent, WriteContext context)\r
29                         throws DatabaseException {\r
30                 System.err.println("write enumeration");\r
31                 return null;\r
32         }\r
33         \r
34         @Override\r
35         public Resource getResource() {\r
36                 return resource;\r
37         }\r
38 \r
39 }\r