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 Enumeration2 implements IWriteableObject {
\r
13 private String name;
\r
14 private ArrayList<String> values;
\r
16 private Resource resource;
\r
18 public Enumeration2(String name, ArrayList<String> values) {
\r
20 this.values = values;
\r
23 public String getName() {
\r
27 public Resource getResource() {
\r
32 public void write(WriteGraph graph, Resource parent, WriteContext context)
\r
33 throws DatabaseException {
\r
34 System.err.println("write enumeration");
\r