1 package org.simantics.db.layer0.adapter;
3 import org.simantics.db.Resource;
4 import org.simantics.db.common.primitiverequest.PossibleAdapter;
5 import org.simantics.db.common.utils.Logger;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.db.layer0.internal.SimanticsInternal;
9 abstract public class AbstractStringModifier implements StringModifier {
11 final private Resource value;
13 public AbstractStringModifier(Resource resource) {
14 this.value = resource;
18 public String getValue() {
20 return SimanticsInternal.getSession().syncRequest(new PossibleAdapter<String>(value, String.class));
21 } catch (DatabaseException e) {
22 Logger.defaultLogError(e);