for (DictionaryAttribute attr : dic.getAttributes()) { at.addRule(); at.addRow(attr.getName(), attr.getDatatype(), attr.getDefaultValue(), attr.getOptional() ? "✔":"✘", attr.getFragmentDependant() ? "✔":"✘");
private void debug(Value value) { Instance instance = (Instance) value.eContainer().eContainer(); DictionaryAttribute attr = instance.getTypeDefinition().getDictionaryType().findAttributesByID(value.getName()); if (attr.getFragmentDependant()) { Log.debug("Update param for {}.{}/{} = '{}'", instance.getName(), value.getName(), ((NamedElement) value.eContainer()).getName(), value.getValue()); } else { Log.debug("Update param for {}.{} = '{}'", instance.getName(), value.getName(), value.getValue()); } }
String defValue = null; String value = null; if (att.getFragmentDependant()) { FragmentDictionary fdico = instance.findFragmentDictionaryByID(nodeName); if (fdico != null) {
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); } } }
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 (dictionaryType != null) { for (DictionaryAttribute attr : dictionaryType.getAttributes()) { if (!attr.getFragmentDependant()) { Value value = factory.createValue(); value.setName(attr.getName());
if (dictionaryType != null) { for (DictionaryAttribute attr : dictionaryType.getAttributes()) { if (!attr.getFragmentDependant()) { Value value = factory.createValue(); value.setName(attr.getName());
"Param does not existe in type " + target.getName() + " -> " + propName); } else { if (!dicAtt.getFragmentDependant()) { throw new KevScriptError( "Dictionary Attribute is not fragment dependent " + dicAtt.getName());
"Param does not existe in type " + target.getName() + " -> " + propName); } else { if (!dicAtt.getFragmentDependant()) { throw new KevScriptException( "Dictionary Attribute is not fragment dependent " + dicAtt.getName());
if (node.getTypeDefinition().getDictionaryType() != null) { for (DictionaryAttribute attr : node.getTypeDefinition().getDictionaryType().getAttributes()) { if (!attr.getFragmentDependant()) { ContainerNode currentNode = currentModel.findNodesByID(nodeName); if (currentNode != null) {