Instance instance = (Instance) dicValue.eContainer().eContainer(); DictionaryAttribute dicAtt = instance.getTypeDefinition().getDictionaryType().findAttributesByID(dicValue.getName()); if (dicAtt.getDefaultValue() != null && !dicAtt.getDefaultValue().equals("")) { valueToInject = dicAtt.getDefaultValue();
if (att.getDefaultValue() != null && !att.getDefaultValue().equals("")) { defValue = att.getDefaultValue();
for (DictionaryAttribute attr : dic.getAttributes()) { at.addRule(); at.addRow(attr.getName(), attr.getDatatype(), attr.getDefaultValue(), attr.getOptional() ? "✔":"✘", attr.getFragmentDependant() ? "✔":"✘");
DictionaryType dt = instance.getTypeDefinition().getDictionaryType(); DictionaryAttribute dicAtt = dt.findAttributesByID(dicValue.getName()); if (dicAtt != null && dicAtt.getDefaultValue() != null && dicAtt.getDefaultValue().equals(dicValue.getValue())) { return true;
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); } } }
Value value = factory.createValue(); value.setName(attr.getName()); value.setValue(attr.getDefaultValue()); dictionary.addValues(value);
Value value = factory.createValue(); value.setName(attr.getName()); value.setValue(attr.getDefaultValue()); dictionary.addValues(value);
Value param = factory.createValue(); param.setName(attr.getName()); param.setValue(attr.getDefaultValue()); node.getDictionary().addValues(param); Log.debug("Set default node param: {} = '{}'", param.getName(), param.getValue());