nestedVariable.setMultiValue(variable.isMultiValue());
bcSet.add(new Variable().setId("c").setMultiValue(true).setType(Variable.VariableType.BOOLEAN)); Set<Variable> bSet = new HashSet<>(); bSet.add(new Variable().setId("b").setType(Variable.VariableType.OBJECT).setVariableSet(bcSet)); Set<Variable> rootSet = new HashSet<>(); rootSet.add(new Variable().setId("a").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(bSet));
bcSet.add(new Variable().setId("c").setType(Variable.VariableType.BOOLEAN)); Set<Variable> bSet = new HashSet<>(); bSet.add(new Variable().setId("b").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(bcSet)); Set<Variable> rootSet = new HashSet<>(); rootSet.add(new Variable().setId("a").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(bSet));
ab1Set.add(new Variable().setId("ab1c1").setMultiValue(true).setType(Variable.VariableType.BOOLEAN)); ab1Set.add(new Variable().setId("ab1c2").setType(Variable.VariableType.TEXT)); ab2c1Set.add(new Variable().setId("ab2c1d1").setMultiValue(true).setType(Variable.VariableType.INTEGER)); ab2c1Set.add(new Variable().setId("ab2c1d2").setType(Variable.VariableType.TEXT)); Set<Variable> ab2Set = new HashSet<>(); ab3c1Set.add(new Variable().setId("ab3c1d1").setMultiValue(true).setType(Variable.VariableType.TEXT)); ab3c1Set.add(new Variable().setId("ab3c1d2").setType(Variable.VariableType.DOUBLE)); Set<Variable> ab3Set = new HashSet<>(); ab3Set.add(new Variable().setId("ab3c1").setType(Variable.VariableType.OBJECT).setMultiValue(true).setVariableSet(ab3c1Set)); aSet.add(new Variable().setId("ab2").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(ab2Set)); aSet.add(new Variable().setId("ab3").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(ab3Set));
ab1Set.add(new Variable().setId("ab1c1").setMultiValue(true).setType(Variable.VariableType.BOOLEAN)); ab1Set.add(new Variable().setId("ab1c2").setType(Variable.VariableType.TEXT)); ab2c1Set.add(new Variable().setId("ab2c1d1").setMultiValue(true).setType(Variable.VariableType.INTEGER)); ab2c1Set.add(new Variable().setId("ab2c1d2").setType(Variable.VariableType.TEXT)); Set<Variable> ab2Set = new HashSet<>(); ab3c1Set.add(new Variable().setId("ab3c1d1").setMultiValue(true).setType(Variable.VariableType.TEXT)); ab3c1Set.add(new Variable().setId("ab3c1d2").setType(Variable.VariableType.DOUBLE)); Set<Variable> ab3Set = new HashSet<>(); ab3Set.add(new Variable().setId("ab3c1").setType(Variable.VariableType.OBJECT).setMultiValue(true).setVariableSet(ab3c1Set)); aSet.add(new Variable().setId("ab2").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(ab2Set)); aSet.add(new Variable().setId("ab3").setMultiValue(true).setType(Variable.VariableType.OBJECT).setVariableSet(ab3Set));