1 package org.simantics.db.layer0.variable;
3 import java.util.ArrayList;
4 import java.util.Collection;
5 import java.util.Collections;
8 import org.simantics.databoard.binding.Binding;
10 public class ConstantPropertyVariableBuilder {
14 final Binding binding;
15 final Collection<ConstantPropertyVariableBuilder> properties;
16 final Set<String> classifications;
18 public ConstantPropertyVariableBuilder(String name, Object value, Binding binding, Collection<ConstantPropertyVariableBuilder> properties, Set<String> classifications) {
21 this.binding = binding;
22 this.properties = properties;
23 this.classifications = classifications;
26 public ConstantPropertyVariableBuilder(String name, Object value, Binding binding) {
27 this(name, value, binding, new ArrayList<ConstantPropertyVariableBuilder>(), Collections.<String>emptySet());
30 public String getName() {
34 public ConstantPropertyVariable build(Variable parent) {
35 return new ConstantPropertyVariable(parent, name, value, binding, properties, classifications);