private static void apply(ContainerNode node, Group group) { group.removeSubNodes(node); node.removeGroups(group); FragmentDictionary fDic = group.findFragmentDictionaryByID(node.getName()); if (fDic != null) { group.removeFragmentDictionary(fDic); } } }
private static void apply(ContainerNode node, Group group) { group.addSubNodes(node); node.addGroups(group); DictionaryType dictionaryType = group.getTypeDefinition().getDictionaryType(); if (dictionaryType != null) { DefaultKevoreeFactory factory = new DefaultKevoreeFactory(); FragmentDictionary fDic = factory.createFragmentDictionary(); fDic.setName(node.getName()); for (DictionaryAttribute attr : dictionaryType.getAttributes()) { if (attr.getFragmentDependant()) { Value value = factory.createValue(); value.setName(attr.getName()); value.setValue(attr.getDefaultValue()); fDic.addValues(value); } } group.addFragmentDictionary(fDic); } } }
instance.setTypeDefinition(td); instance.setName(InterpretExpr.interpret(name.getChildren().get(0), ctxVars)); model.addGroups(instance); i = instance;
group.setStarted(false);
Group previousGroup = (Group) currentModel.findByPath(g.path()); if (previousGroup != null) { traces.append(modelCompare.diff(previousGroup, g));
private static void apply(ContainerNode node, Group group) { group.addSubNodes(node); node.addGroups(group); DictionaryType dictionaryType = group.getTypeDefinition().getDictionaryType(); if (dictionaryType != null) { DefaultKevoreeFactory factory = new DefaultKevoreeFactory(); FragmentDictionary fDic = factory.createFragmentDictionary(); fDic.setName(node.getName()); for (DictionaryAttribute attr : dictionaryType.getAttributes()) { if (attr.getFragmentDependant()) { Value value = factory.createValue(); value.setName(attr.getName()); value.setValue(attr.getDefaultValue()); fDic.addValues(value); } } group.addFragmentDictionary(fDic); } } }
instance.setTypeDefinition(td); instance.setName(InterpretExpr.interpret(name.getChildren().get(0), ctxVars)); model.addGroups(instance); i = instance;
private static void apply(ContainerNode node, Group group) { group.removeSubNodes(node); node.removeGroups(group); FragmentDictionary fDic = group.findFragmentDictionaryByID(node.getName()); if (fDic != null) { group.removeFragmentDictionary(fDic); } } }