package org.simantics.db.layer0.variable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Set; import org.simantics.databoard.binding.Binding; public class ConstantPropertyVariableBuilder { final String name; final Object value; final Binding binding; final Collection properties; final Set classifications; public ConstantPropertyVariableBuilder(String name, Object value, Binding binding, Collection properties, Set classifications) { this.name = name; this.value = value; this.binding = binding; this.properties = properties; this.classifications = classifications; } public ConstantPropertyVariableBuilder(String name, Object value, Binding binding) { this(name, value, binding, new ArrayList(), Collections.emptySet()); } public String getName() { return name; } public ConstantPropertyVariable build(Variable parent) { return new ConstantPropertyVariable(parent, name, value, binding, properties, classifications); } }