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); } } }
if (target.findFragmentDictionaryByID(targetNode.getName()) == null) { final FragmentDictionary newDictionary = factory.createFragmentDictionary(); newDictionary.setName(targetNode.getName()); target.addFragmentDictionary(newDictionary); .findValuesByID(propName); if (dicValue == null) { dicValue = factory.createValue(); target.findFragmentDictionaryByID(targetNode.getName()).addValues(dicValue);
FragmentDictionary fdico = instance.findFragmentDictionaryByID(nodeName); if (fdico != null) { Value tempValue = fdico.findValuesByID(att.getName()); if (tempValue != null) { value = tempValue.getValue();
if (fragDic.getName().equals(nodeName)) { for (Value val : fragDic.getValues()) { TupleObjPrim updateVal = new TupleObjPrim(val, AdaptationType.UpdateDictionaryInstance); if (!elementAlreadyProcessed.containsKey(updateVal.getKey())) { if (dictionary != null && dictionary instanceof FragmentDictionary && !((FragmentDictionary) dictionary).getName().equals(nodeName)) {
if (target.findFragmentDictionaryByID(targetNode.getName()) == null) { final FragmentDictionary newDictionary = factory.createFragmentDictionary(); newDictionary.setName(targetNode.getName()); target.addFragmentDictionary(newDictionary); .findValuesByID(propName); if (dicValue == null) { dicValue = factory.createValue(); target.findFragmentDictionaryByID(targetNode.getName()).addValues(dicValue);
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); } } }