1 package org.simantics.sysdyn.modelImport.model.support;
\r
3 import java.util.ArrayList;
\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
11 public class Enumeration implements IWriteableObject {
\r
13 private String name;
\r
14 private ArrayList<String> values;
\r
16 private Resource resource;
\r
18 public Enumeration(String name, ArrayList<String> values) {
\r
20 this.values = values;
\r
23 public String getName() {
\r
28 public Resource write(WriteGraph graph, Resource parent, WriteContext context)
\r
29 throws DatabaseException {
\r
30 System.err.println("write enumeration");
\r
35 public Resource getResource() {
\r