public static TaggedValueVO getAttributeTagFromEAObject(EA.AttributeTag eaAttributeTagObj) { TaggedValueVO atvvo = new TaggedValueVO(); atvvo.name = excludeSpecialChar(eaAttributeTagObj.Name); atvvo.guid = eaAttributeTagObj.TagGUID; atvvo.tagValue = excludeSpecialChar(eaAttributeTagObj.Value); atvvo.notes = eaAttributeTagObj.Notes; atvvo.changed = ' '; return(atvvo); }
/// <summary> /// Set Tagged Value with 'Name' to a value. It handles long memo fields. /// </summary> /// <param name="tag"></param> /// <param name="value"></param> /// <returns></returns> public static void SetTaggedValue(EA.AttributeTag tag, string value) { tag.Value = value.Length > 255 ? MemoString : value; tag.Notes = value; tag.Update(); }
/// <summary> /// Get the value of an element tagged value. It handles Memo field with a lang of > 255 /// </summary> /// <param name="tg"></param> /// <returns></returns> public static string GetTaggedValue(EA.AttributeTag tg) { return(tg.Value == MemoString ? tg.Notes : tg.Value); }